mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-27 02:05:07 +02:00
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.
14 lines
868 B
Plaintext
14 lines
868 B
Plaintext
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|
BlockContainer <html> at (0,0) content-size 800x138 [BFC] children: not-inline
|
|
BlockContainer <body> at (8,30) content-size 784x100 children: not-inline
|
|
BlockContainer <div.not-bfc> at (8,30) content-size 784x20 children: not-inline
|
|
BlockContainer <div.bfc> at (8,80) content-size 784x0 [BFC] children: not-inline
|
|
BlockContainer <div.not-bfc> at (8,110) content-size 784x20 children: not-inline
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x138]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,30 784x100]
|
|
PaintableWithLines (BlockContainer<DIV>.not-bfc) [8,30 784x20]
|
|
PaintableWithLines (BlockContainer<DIV>.bfc) [8,80 784x0]
|
|
PaintableWithLines (BlockContainer<DIV>.not-bfc) [8,110 784x20]
|