mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-26 17:55:07 +02:00
When restructuring a block node inside an inline parent, if the nearest block ancestor is `display: inline-block`, ensure that the generated anonymous wrappers also have `display: inline-block`. This fixes layout issues with block elements nested inside inline-block elements.
39 lines
2.2 KiB
Plaintext
39 lines
2.2 KiB
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x34 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 4, rect: [8,8 35.15625x18] baseline: 13.796875
|
|
"foo "
|
|
frag 1 from BlockContainer start: 0, length: 0, rect: [43.15625,8 27.640625x18] baseline: 13.796875
|
|
frag 2 from TextNode start: 0, length: 4, rect: [70.796875,8 35.203125x18] baseline: 13.796875
|
|
" baz"
|
|
TextNode <#text>
|
|
BlockContainer <div> at (43.15625,8) content-size 27.640625x18 inline-block [BFC] children: not-inline
|
|
BlockContainer <(anonymous)> at (43.15625,8) content-size 27.640625x0 children: inline
|
|
TextNode <#text>
|
|
InlineNode <span>
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (43.15625,8) content-size 27.640625x18 children: not-inline continuation
|
|
BlockContainer <div> at (43.15625,8) content-size 27.640625x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 3, rect: [43.15625,8 27.640625x18] baseline: 13.796875
|
|
"bar"
|
|
TextNode <#text>
|
|
BlockContainer <(anonymous)> at (43.15625,26) content-size 27.640625x0 children: inline
|
|
InlineNode <span> continuation
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x34]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer<DIV>) [43.15625,8 27.640625x18]
|
|
PaintableWithLines (BlockContainer(anonymous)) [43.15625,8 27.640625x0]
|
|
PaintableWithLines (InlineNode<SPAN>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [43.15625,8 27.640625x18]
|
|
PaintableWithLines (BlockContainer<DIV>) [43.15625,8 27.640625x18]
|
|
TextPaintable (TextNode<#text>)
|
|
PaintableWithLines (BlockContainer(anonymous)) [43.15625,26 27.640625x0]
|
|
PaintableWithLines (InlineNode<SPAN>)
|
|
TextPaintable (TextNode<#text>)
|