Open
Bug 1992738
Opened 14 days ago
Updated 13 days ago
elementFromPoint incorrectly returns display:contents element
Categories
(Core :: DOM: CSS Object Model, defect)
Core
DOM: CSS Object Model
Tracking
()
NEW
People
(Reporter: lwarlow, Unassigned)
References
Details
When using document.elementFromPoint() Firefox is incorrectly returning an element with display:contents
Load: https://jsfiddle.net/jmb1r8a9/
Actual Results:
See that "DIV" and ["BODY", "HTML"} are logged to the console.
Expected Results:
See that "BODY" and ["BODY", "HTML"] are logged to the console. (This is the case in Servo, Chromium is correct for elementsFromPoint() but is also wrong for elementFromPoint())
I've added tests for this in https://github.com/web-platform-tests/wpt/pull/55253
Reporter | ||
Updated•14 days ago
|
Summary: elementFromPoint and elementsFromPoint incorrectly skips display:inline elements → elementFromPoint incorrectly returns display:contents element
Comment 1•13 days ago
|
||
(Linking spec issue that got filed as a result)
Severity: -- → S3
See Also: → https://github.com/w3c/csswg-drafts/issues/12907
You need to log in
before you can comment on or make changes to this bug.
Description
•