mirror of
https://github.com/RGBCube/serenity
synced 2025-07-24 22:27:42 +00:00
LibWeb: Resolve inline-block percentage padding against 0, not infinity
When the containing block has an indefinite width, any descendants with a percentage size should resolve that against 0, not infinity. Fixes an assertion failure when loading https://www.gnu.org/
This commit is contained in:
parent
5955a504e0
commit
42675971e2
3 changed files with 16 additions and 1 deletions
|
@ -0,0 +1,9 @@
|
|||
<!DOCTYPE html><style>
|
||||
body {
|
||||
width: max-content;
|
||||
}
|
||||
div {
|
||||
display: inline-block;
|
||||
padding-left: 8%;
|
||||
}
|
||||
</style><body><div>
|
Loading…
Add table
Add a link
Reference in a new issue