Closed Bug 1684973 Opened 3 years ago Closed 3 years ago

Event offsetX/Y differ in Chrome and Firefox for mouse events in SVGs

Categories

(Core :: DOM: Events, defect)

defect

Tracking

()

RESOLVED FIXED
86 Branch
Webcompat Priority ?
Tracking Status
firefox86 --- fixed

People

(Reporter: twisniewski, Assigned: emilio)

References

()

Details

Attachments

(1 file)

Bloomberg's site is currently affected by the interop difference between Gecko and Blink, where mouse events' offsets in SVGs are relative to the event's target in Firefox, but the SVG itself in Chrome. There's a pretty lonely spec-bug for this here: https://github.com/w3c/csswg-drafts/issues/1508

My feeling is that while Firefox's behavior is more reasonable/useful, since this is causing webcompat issues, perhaps we ought to bite the bullet and match Chrome's behavior (which Webkit still seems to share)?

This matches other browsers. Needs a test, if the try server comes back
green.

Assignee: nobody → emilio
Status: NEW → ASSIGNED
Pushed by ealvarez@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/acb6c55d8192
Return mouse offset coordinates in SVG relative to the SVG root. r=smaug
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/27048 for changes under testing/web-platform/tests
Status: ASSIGNED → RESOLVED
Closed: 3 years ago
Resolution: --- → FIXED
Target Milestone: --- → 86 Branch
Upstream PR merged by moz-wptsync-bot
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: