Bug 1992738 Comment 0 Edit History

Note: The actual edited comment in the bug view page will always show the original commenter’s name and original timestamp.

When using document.elementsFromPoint() and document.elementFromPoint() Firefox is incorrectly skipping elements with display:inline such as `<span>`

Load: https://jsfiddle.net/8jph3exd/

Actual Results:

See that "BODY" and ["BODY", "HTML"} are logged to the console.

Expected Results:

See that "SPAN" and ["SPAN", "BODY", "HTML"] are logged to the console. (This is the case in Chromium, Safari, and Servo)

I've added tests for this in https://github.com/web-platform-tests/wpt/pull/55253
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

Back to Bug 1992738 Comment 0