1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-15 15:24:57 +00:00
serenity/Tests/LibWeb/Text/input/hit_testing/nested-inline-paintables.html
Aliaksandr Kalenik c02820759b LibWeb: Test nested elements in InlinePaintable::hit_test()
Before this change we were ignoring nested paintables inside inline
paintable during hit-testing, but now we recurse into subtree.

Fixes https://github.com/SerenityOS/serenity/issues/22927
2024-01-25 15:53:18 +01:00

15 lines
431 B
HTML

<script src="../include.js"></script>
<body>
<span id="outer">
<span id="inner">
<span id="name">lang</span>
<span id="value">"en"</span>
</span>
</span>
<script type="text/javascript">
test(() => {
printElement(internals.hitTest(10, 10).node.parentNode);
printElement(internals.hitTest(50, 10).node.parentNode);
});
</script>
</body>