mirror of
https://github.com/RGBCube/serenity
synced 2025-07-29 02:57:44 +00:00
LibWeb: Add out-of-flow boxes to anonymous wrapper block when possible
If the previous sibling of an out-of-flow box has been wrapped in an anonymous block, we now stuff the out-of-flow box into the anonymous block as well. Co-authored-by: Aliaksandr Kalenik <kalenik.aliaksandr@gmail.com>
This commit is contained in:
parent
71bdee2837
commit
8f311c61af
6 changed files with 61 additions and 29 deletions
|
@ -74,30 +74,28 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (135,45) content-size 340x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <blockquote> at (280,195) content-size 50x90 floating children: not-inline
|
||||
BlockContainer <(anonymous)> at (280,195) content-size 50x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <address> at (280,195) content-size 50x20 children: inline
|
||||
line 0 width: 17.275390, height: 10, bottom: 10, baseline: 7.998046
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [280,195 17.275390x10]
|
||||
"bar"
|
||||
line 1 width: 30.224609, height: 10, bottom: 20, baseline: 7.998046
|
||||
frag 0 from TextNode start: 4, length: 6, rect: [280,205 30.224609x10]
|
||||
"maids,"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (280,215) content-size 50x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (135,45) content-size 340x0 children: inline
|
||||
BlockContainer <blockquote> at (280,195) content-size 50x90 floating children: not-inline
|
||||
BlockContainer <(anonymous)> at (280,195) content-size 50x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <address> at (280,195) content-size 50x20 children: inline
|
||||
line 0 width: 17.275390, height: 10, bottom: 10, baseline: 7.998046
|
||||
frag 0 from TextNode start: 0, length: 3, rect: [280,195 17.275390x10]
|
||||
"bar"
|
||||
line 1 width: 30.224609, height: 10, bottom: 20, baseline: 7.998046
|
||||
frag 0 from TextNode start: 4, length: 6, rect: [280,205 30.224609x10]
|
||||
"maids,"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (280,215) content-size 50x0 children: inline
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <h1> at (365,185) content-size 100x100 floating children: inline
|
||||
line 0 width: 56.416015, height: 10, bottom: 10, baseline: 7.998046
|
||||
frag 0 from TextNode start: 0, length: 11, rect: [365,185 56.416015x10]
|
||||
"sing to me,"
|
||||
line 1 width: 65.449218, height: 10, bottom: 20, baseline: 7.998046
|
||||
frag 0 from TextNode start: 12, length: 12, rect: [365,195 65.449218x10]
|
||||
"erbarme dich"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (135,45) content-size 340x0 children: inline
|
||||
BlockContainer <h1> at (365,185) content-size 100x100 floating children: inline
|
||||
line 0 width: 56.416015, height: 10, bottom: 10, baseline: 7.998046
|
||||
frag 0 from TextNode start: 0, length: 11, rect: [365,185 56.416015x10]
|
||||
"sing to me,"
|
||||
line 1 width: 65.449218, height: 10, bottom: 20, baseline: 7.998046
|
||||
frag 0 from TextNode start: 12, length: 12, rect: [365,195 65.449218x10]
|
||||
"erbarme dich"
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (20,30) content-size 480x0 children: inline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue