ladybird/Tests/LibWeb/Text/input/hit_testing/pointer-events-no-parent-extension.html
Psychpsyo 0b0dd7d4a5 Meta: Add DOCTYPEs to text tests that need rebaselining after
This is a separate commit from the one that adds DOCTYPEs to all
the other text tests, to make review easier.
2025-03-20 11:50:49 +01:00

16 lines
494 B
HTML

<!DOCTYPE html>
<script src="../include.js"></script>
<body style="height: 100px">
<div>
<!-- this div should not be hit, nor should its parent -->
<div id="a1" style="position: fixed; width: 100px; height: 100px; pointer-events: none"></div>
foobar
</div>
</body>
<script>
test(() => {
const hit = internals.hitTest(a1.offsetLeft + 50, a1.offsetTop + 80);
printElement(hit.node);
printElement(hit.node.parentNode);
});
</script>