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
14 lines
309 B
HTML
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>
|
|
|