1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 23:17:46 +00:00

LibWeb: Resolve % top and bottom insets against containing block height

This makes cookie banner buttons show up on Linktree again. :^)

Regressed in fd37ad3a84
This commit is contained in:
Andreas Kling 2023-07-08 09:49:37 +02:00
parent fd37ad3a84
commit db5bde01dc
3 changed files with 36 additions and 2 deletions

View file

@ -0,0 +1,20 @@
<!DOCTYPE html><style>
* {
border: 1px solid black;
}
body {
position: absolute;
width: 500px;
height: 400px;
}
.one {
position: absolute;
top: 50%;
left: 60%;
}
.two {
position: absolute;
bottom: 10%;
right: 30%;
}
</style><body><div class=one>one</div><div class=two>two</div>