mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-10-23 00:19:18 +00:00
In 89ba00304c
, the box' X position was
capped at 0 to prevent negative X positions to act as if there were
intruding floats on the left side. Instead, we need to check whether the
left side float intrusion we are going to calculate matters at all -
because if there's no matching float box, the intrusion is always going
to be 0 and we don't need to take the box' X position into account.
Fixes the floating publication images on https://lexfridman.com/.
18 lines
1.1 KiB
Text
18 lines
1.1 KiB
Text
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x208 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,8) content-size 784x18 children: not-inline
|
|
BlockContainer <div#a> at (-92,8) content-size 884x18 children: inline
|
|
frag 0 from TextNode start: 0, length: 11, rect: [108,8 98x18] baseline: 13.796875
|
|
"foo bar baz"
|
|
BlockContainer <div#b> at (-92,8) content-size 200x200 floating [BFC] children: not-inline
|
|
TextNode <#text>
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x208]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x18] overflow: [8,8 784x200]
|
|
PaintableWithLines (BlockContainer<DIV>#a) [-92,8 884x18] overflow: [-92,8 884x200]
|
|
PaintableWithLines (BlockContainer<DIV>#b) [-92,8 200x200]
|
|
TextPaintable (TextNode<#text>)
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x208] [children: 0] (z-index: auto)
|