ladybird/Tests/LibWeb/Layout/expected/position-empty-pseudo-elements.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

20 lines
1.3 KiB
Text

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x175 [BFC] children: not-inline
BlockContainer <body> at (8,25) content-size 784x125 children: not-inline
BlockContainer <div.empty_content> at (33,25) content-size 50x50 children: not-inline
BlockContainer <(anonymous)> at (33,75) content-size 50x0 children: inline
TextNode <#text>
BlockContainer <div.content_with_space> at (33,100) content-size 50x50 children: not-inline
BlockContainer <(anonymous)> at (33,150) content-size 50x0 children: inline
TextNode <#text>
BlockContainer <(anonymous)> at (8,175) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x175]
PaintableWithLines (BlockContainer<BODY>) [8,25 784x125]
PaintableWithLines (BlockContainer<DIV>.empty_content) [33,25 50x50]
PaintableWithLines (BlockContainer(anonymous)) [33,25 50x50]
PaintableWithLines (BlockContainer<DIV>.content_with_space) [33,100 50x50]
PaintableWithLines (BlockContainer(anonymous)) [33,100 50x50]
PaintableWithLines (BlockContainer(anonymous)) [8,175 784x0]