Files
ladybird/Tests/LibWeb/Layout/expected/float-with-padding-top-beside-short-float.txt
Tim Ledbetter 245eb7d91d LibWeb: Use margin box for vertical overlap checks in float placement
Previously, a float with `padding-top` would overlap a preceding float
instead of being placed beside it. The vertical overlap check was
comparing the new float's content box Y,which includes the padding
offset, against preceding floats' margin box rects, causing the check
to incorrectly conclude the floats do not overlap.
2026-02-25 12:03:31 +01:00

17 lines
1010 B
Plaintext

Viewport <#document> at [0,0] [0+0+0 800 0+0+0] [0+0+0 600 0+0+0] [BFC] children: not-inline
BlockContainer <html> at [0,0] [0+0+0 800 0+0+0] [0+0+0 58 0+0+0] [BFC] children: not-inline
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 0 0+0+8] children: inline
BlockContainer <div.a> at [8,8] floating [0+0+0 100 0+0+0] [0+0+0 20 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
BlockContainer <div.b> at [108,48] floating [0+0+0 100 0+0+0] [0+0+40 10 0+0+0] [BFC] children: not-inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x58]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]
PaintableWithLines (BlockContainer<DIV>.a) [8,8 100x20]
PaintableWithLines (BlockContainer<DIV>.b) [108,8 100x50]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x58] [children: 0] (z-index: auto)