1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 14:57:35 +00:00

LibWeb: Use the parent container's y offset when finding static position

Fixes #18819.
This commit is contained in:
implicitfield 2024-03-08 14:09:42 +04:00 committed by Alexander Kalenik
parent bf06d5b634
commit 5da9f52b1f
5 changed files with 37 additions and 2 deletions

View file

@ -0,0 +1,16 @@
<!DOCTYPE html><style>
* {
border: solid 5px black;
}
.static {
height: 200px;
width: 200px;
background: green;
}
.absolute {
position: absolute;
height: 200px;
width: 100px;
background: blue;
}
</style><div class="static"></div><div class="absolute"></div></div>