MouseEvent's offsetX and offsetY should be based on relative target
authorrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 May 2016 03:51:46 +0000 (03:51 +0000)
committerrniwa@webkit.org <rniwa@webkit.org@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 7 May 2016 03:51:46 +0000 (03:51 +0000)
commit81659146153c44d38b5decd3c0890f3d97729ff1
treeb66de8b2b5555f615909a51bf113ba47006f25bf
parent435d4bb431b7e2f6977b35fe4a3b15af2510a8bf
MouseEvent's offsetX and offsetY should be based on relative target
https://bugs.webkit.org/show_bug.cgi?id=157444
<rdar://problem/24396408>

Reviewed by Darin Adler.

Add a W3C style testharness.js test for adjusting offsetX and offsetY to the adjusted target
since our existing behavior matches the spec as well as Chrome's behavior:
http://w3c.github.io/webcomponents/spec/shadow/#event-dispatch

* fast/shadow-dom/MouseEvent-prototype-offsetX-offsetY-expected.txt: Added.
* fast/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html: Added.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@200536 268f45cc-cd09-0410-ab3c-d52691b4dbfc
LayoutTests/ChangeLog
LayoutTests/fast/shadow-dom/MouseEvent-prototype-offsetX-offsetY-expected.txt [new file with mode: 0644]
LayoutTests/fast/shadow-dom/MouseEvent-prototype-offsetX-offsetY.html [new file with mode: 0644]