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:
parent
fd37ad3a84
commit
db5bde01dc
3 changed files with 36 additions and 2 deletions
20
Tests/LibWeb/Layout/input/abspos-with-percentage-insets.html
Normal file
20
Tests/LibWeb/Layout/input/abspos-with-percentage-insets.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue