Skip to content

Truly independent web browser

494 B
Raw Blame
<!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>