mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-11-09 17:51:03 +00:00
33 lines
625 B
HTML
33 lines
625 B
HTML
|
|
<!DOCTYPE html><style type="text/css">
|
||
|
|
body {
|
||
|
|
width: 500px;
|
||
|
|
height: 500px;
|
||
|
|
position: relative;
|
||
|
|
border: 1px solid black;
|
||
|
|
}
|
||
|
|
|
||
|
|
#translation {
|
||
|
|
position: absolute;
|
||
|
|
top: 50%;
|
||
|
|
width: 300px;
|
||
|
|
transform: translate(0px, -50%);
|
||
|
|
}
|
||
|
|
|
||
|
|
#box {
|
||
|
|
width: 300px;
|
||
|
|
height: 300px;
|
||
|
|
background-color: magenta;
|
||
|
|
cursor: pointer;
|
||
|
|
}
|
||
|
|
|
||
|
|
#hidden-overflow {
|
||
|
|
overflow: hidden;
|
||
|
|
}
|
||
|
|
</style><div id="translation"><div id="hidden-overflow"><div id="empty-wrapper"><div id="box">
|
||
|
|
<script src="../include.js"></script>
|
||
|
|
<script>
|
||
|
|
test(() => {
|
||
|
|
printElement(internals.hitTest(100, 400).node);
|
||
|
|
});
|
||
|
|
</script>
|