Open Bug 1992738 Opened 14 days ago Updated 13 days ago

elementFromPoint incorrectly returns display:contents element

Categories

(Core :: DOM: CSS Object Model, defect)

defect

Tracking

()

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

Summary: elementFromPoint and elementsFromPoint incorrectly skips display:inline elements → elementFromPoint incorrectly returns display:contents element

(Linking spec issue that got filed as a result)

Severity: -- → S3
You need to log in before you can comment on or make changes to this bug.