Files
sousa-gecko/testing/web-platform/tests/css/cssom-view/elementFromPoint-ua-shadowroot-crash.html
T
Martin RobinsonandOriol Brufau 6750e3a2d1 Bug 2047139 [wpt PR 60579] - script: Retarget elementFromPoint and elementsFromPoint using retargeting algorithm, a=testonly
Automatic update from web-platform-tests
script: Retarget `elementFromPoint` and `elementsFromPoint` using retargeting algorithm

Browsers still, in practice, disagree about what `elementsFromPoint` and
`elementFromPoint` should return, but ther is a CSSWG resolution that we
can follow from last month: https://github.com/w3c/csswg-drafts/issues/556

This change implements the resolution and also fixes a panic that was
resulting from returning an element within a UA shadow tree.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
Co-authored-by: Oriol Brufau <obrufau@igalia.com>

--

wpt-commits: b18f96e56b09f2cb4f52bee170c83bb414f17072
wpt-pr: 60579
2026-06-16 11:37:15 +00:00

14 lines
309 B
HTML

<!DOCTYPE html>
<link rel="help" href="https://github.com/servo/servo/issues/45170">
<style>
#container {scale: 1000; }
:read-only { width: max-content; }
</style>
<div id="container">
<input id="user"></input>
</div>
<script>
container.replaceChild(document.elementFromPoint(0, 0), user);
</script>