Truly independent web browser
<!doctype html>
<body style="margin: 0">
<style>
#hidden-parent { visibility: hidden; font-size: 100px; }
#visible-child { visibility: visible; }
</style>
<div id="hidden-parent"><div id="visible-child">LOL</div></div>
<script src="../include.js"></script>
<script>
test(() => {
// Hit test in the middle of the visible text inside hidden parent
const result = internals.hitTest(50, 50);
if (result && result.node) {
printElement(result.node);
printElement(result.node.parentNode);
} else {
println("FAIL: no hit test result");
}
});
</script>
</body>