mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 13:27:35 +00:00
LibWeb: Use padding box of containing block to resolve % height size
From CSS-POSITION-3 <https://www.w3.org/TR/css-position-3/#def-cb> "..the containing block is formed by the padding edge of the ancestor.." Fixes crash on Acid2 test.
This commit is contained in:
parent
14ae0524e9
commit
ca0c2339f4
5 changed files with 47 additions and 2 deletions
|
@ -0,0 +1,9 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x616 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x600 children: not-inline
|
||||
BlockContainer <div.container> at (8,108) content-size 784x500 children: not-inline
|
||||
BlockContainer <div.hmm> at (18,118) content-size 764x250 children: inline
|
||||
line 0 width: 36.84375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [18,118 36.84375x17.46875]
|
||||
"hello"
|
||||
TextNode <#text>
|
|
@ -0,0 +1,8 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x53.46875 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x37.46875 children: not-inline
|
||||
BlockContainer <div.hmm> at (18,18) content-size 764x17.46875 children: inline
|
||||
line 0 width: 36.84375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 5, rect: [18,18 36.84375x17.46875]
|
||||
"hello"
|
||||
TextNode <#text>
|
Loading…
Add table
Add a link
Reference in a new issue