mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-05-02 20:42:11 +02:00
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.
27 lines
1.4 KiB
Plaintext
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]
|