Files
ladybird/Tests/LibWeb/Layout/expected/inline-size.txt
Andreas Kling 16662ab230 LibWeb: Account for collapsed top margins in BFC root height calculation
By the time we're measuring the height of a BFC root, we've already
collapsed all relevant margins for the root and its descendants.
Given this, we should simply use 0 (relative to the BFC root) as the
lowest block axis coordinate (i.e Y value) for the margin edges.

This fixes a long-standing issue where BFC roots were sometimes not tall
enough to contain their children due to margins.
2025-02-22 18:41:42 +01:00

39 lines
2.0 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x1048 [BFC] children: not-inline
BlockContainer <body> at (8,70) content-size 784x908 children: not-inline
BlockContainer <p.min-inline-test> at (8,70) content-size 784x200 children: inline
frag 0 from TextNode start: 0, length: 2, rect: [8,70 85.875x76] baseline: 58.984375
"KK"
TextNode <#text>
BlockContainer <(anonymous)> at (8,340) content-size 784x76 children: inline
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <p.max-inline-test> at (8,486) content-size 100x76 children: inline
frag 0 from TextNode start: 0, length: 2, rect: [8,486 85.875x76] baseline: 58.984375
"KK"
TextNode <#text>
BlockContainer <(anonymous)> at (8,632) content-size 784x76 children: inline
TextNode <#text>
BreakNode <br>
TextNode <#text>
BlockContainer <p.inline-size-test> at (8,778) content-size 400x200 children: inline
frag 0 from TextNode start: 0, length: 2, rect: [8,778 85.875x76] baseline: 58.984375
"KK"
TextNode <#text>
BlockContainer <(anonymous)> at (8,1048) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600] overflow: [0,0 800x1048]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x1048]
PaintableWithLines (BlockContainer<BODY>) [8,70 784x908]
PaintableWithLines (BlockContainer<P>.min-inline-test) [8,70 784x200]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,340 784x76]
PaintableWithLines (BlockContainer<P>.max-inline-test) [8,486 100x76]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,632 784x76]
PaintableWithLines (BlockContainer<P>.inline-size-test) [8,778 400x200]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,1048 784x0]