mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:47:35 +00:00

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
28 lines
445 B
HTML
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>
|