NEW 267815
PointerEvent delivered to a pseudo inside a display:contents element yields unexpected results
https://bugs.webkit.org/show_bug.cgi?id=267815
Summary PointerEvent delivered to a pseudo inside a display:contents element yields u...
Nige White
Reported 2024-01-20 07:27:55 PST
Chromium has the same issue here: https://bugs.chromium.org/p/chromium/issues/detail?id=1518093 It would seem that Chromium inherited the issue from WebKit. Run this and follow instructions: https://codepen.io/Animal-Nige/pen/qBvqxjz Have the debugger console open. Click in the center of the red box (#inner). The event is delivered to #inner which is the first element at the mouse position to have a box in which to report offsetX/offsetY But it reports offsetX/offsetY as pageX/pageY. There's plenty of discussion on the Chromium thread. But I think this is a hole in the spec where rational behaviour needs to be decided and codified.
Attachments
Nige White
Comment 1 2024-01-25 23:18:24 PST
No?
Radar WebKit Bug Importer
Comment 2 2024-01-27 07:28:11 PST
Note You need to log in before you can comment on or make changes to this bug.