1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 22:57:44 +00:00

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
This commit is contained in:
Aliaksandr Kalenik 2024-01-25 15:06:34 +01:00 committed by Andreas Kling
parent 1583e6ce07
commit c02820759b
4 changed files with 37 additions and 1 deletions

View file

@ -0,0 +1,15 @@
<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>