WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
169548
Spec change: <img ismap> coordinates should be from image edge, not border edge
https://bugs.webkit.org/show_bug.cgi?id=169548
Summary
Spec change: <img ismap> coordinates should be from image edge, not border edge
Simon Pieters (:zcorpan)
Reported
2017-03-13 03:52:48 PDT
Demo:
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=3800
Expect click on border in the top-left corner to get coordinates 0,0. WebKit measures from the border edge instead. whatwg/html issue:
https://github.com/whatwg/html/issues/438
whatwg/html change:
https://github.com/whatwg/html/pull/529
web-platform-test:
https://github.com/w3c/web-platform-tests/pull/5118
The test passes in Chromium and Gecko; fail in WebKit and Edge. Comment from Travis (Edge)
https://github.com/w3c/html/issues/492#issuecomment-285819148
> Definitely makes sense just to align with Chrome/Firefox on this...
Attachments
Add attachment
proposed patch, testcase, etc.
Chris Dumez
Comment 1
2017-03-20 19:45:53 PDT
Likely the code in appendServerMapMousePosition(). Looks like link has some extra logic there: // The origin (0,0) is at the upper left of the content area, inside the // padding and border. mapPoint -= toLayoutBox(layoutObject)->contentBoxOffset();
Chris Dumez
Comment 2
2017-03-20 19:46:15 PDT
(In reply to
comment #1
)
> Likely the code in appendServerMapMousePosition(). Looks like link has some > extra logic there: > // The origin (0,0) is at the upper left of the content area, inside the > // padding and border. > mapPoint -= toLayoutBox(layoutObject)->contentBoxOffset();
s/link/Blink
Simon Pieters (:zcorpan)
Comment 3
2017-05-22 02:27:33 PDT
https://github.com/w3c/web-platform-tests/pull/5118
has now landed.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug