Files
ladybird/Tests/LibWeb/Layout/expected/block-and-inline/float-clear-by-line-break-at-end-of-block.txt
Jelle Raaijmakers 6d911a6baa LibWeb: Resolve block height correctly after line break with clear: ..
If a block with inline children ends with a line break clearing any
floats, we not only need to take the introduced clearance into account
for the next line box, but the containing block needs to set the correct
height as well.

Since the spec calls for using the last line box' bottom as the resolved
height (if treated as auto), we now correctly apply the clearance to the
previous line box' bottom coordinate.

Fixes #4058.
2025-04-01 16:02:53 +02:00

27 lines
1.4 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x416 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x400 children: not-inline
BlockContainer <div.a> at (8,8) content-size 784x200 children: inline
frag 0 from TextNode start: 1, length: 3, rect: [8,8 27.15625x17] baseline: 13.296875
"foo"
TextNode <#text>
BlockContainer <div.b> at (292,8) content-size 500x200 floating [BFC] children: not-inline
TextNode <#text>
BreakNode <br.c>
TextNode <#text>
BlockContainer <(anonymous)> at (8,208) content-size 784x0 children: inline
TextNode <#text>
BlockContainer <div.d> at (8,208) content-size 500x200 children: not-inline
BlockContainer <(anonymous)> at (8,408) content-size 784x0 children: inline
TextNode <#text>
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x416]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x400]
PaintableWithLines (BlockContainer<DIV>.a) [8,8 784x200]
PaintableWithLines (BlockContainer<DIV>.b) [292,8 500x200]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,208 784x0]
PaintableWithLines (BlockContainer<DIV>.d) [8,208 500x200]
PaintableWithLines (BlockContainer(anonymous)) [8,408 784x0]