[Webkit-unassigned] [Bug 218117] New: MouseEvent.offsetX/Y returns wrong value for inline elements
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Fri Oct 23 01:13:04 PDT 2020
https://bugs.webkit.org/show_bug.cgi?id=218117
Bug ID: 218117
Summary: MouseEvent.offsetX/Y returns wrong value for inline
elements
Product: WebKit
Version: WebKit Nightly Build
Hardware: Unspecified
OS: Unspecified
Status: NEW
Severity: Normal
Priority: P2
Component: UI Events
Assignee: webkit-unassigned at lists.webkit.org
Reporter: noam at webkit.org
According to spec (https://drafts.csswg.org/cssom-view/#dom-mouseevent-offsetx), offsetX/offsetY should return the values relative to the element's padding edge.
Firefox does this correctly, WebKit (and also Chromium, currently), return the value relative to the nearest block ancestor.
See https://codepen.io/noamr-the-selector/pen/WNxRbmZ
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20201023/b2e007ee/attachment-0001.htm>
More information about the webkit-unassigned
mailing list