mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-24 09:52:31 +00:00
This is a separate commit from the one that adds DOCTYPEs to all the other text tests, to make review easier.
16 lines
494 B
HTML
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>
|