1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 07:47:35 +00:00
serenity/Tests/LibWeb/Text/input/hit_testing/box-outside-of-abspos-containing-block-border-rect.html
Aliaksandr Kalenik 16f33aafda LibWeb: Always check paintable boxes children during hit-testing
Children of a paintable box are not guaranteed to be contained within
its border box. Therefore, during hit-testing, we must always check
them.

Fixes https://github.com/SerenityOS/serenity/issues/23219
2024-03-05 15:43:17 +01:00

28 lines
445 B
HTML

<!DOCTYPE html><style>
body {
margin: 0;
}
* {
border: 1px solid black;
}
nav {
position: absolute;
height: 600px;
}
nav > div {
height: 100%;
}
</style><nav><div></div><button id="btn">Run</button></nav>
<script src="../include.js"></script>
<script>
asyncTest(done => {
btn.onclick = () => {
println("Clicked!");
done();
};
internals.click(20, 615);
});
</script>