Files
ladybird/Tests/LibWeb/Layout/expected/blockify-layout-internal-box-without-crashing.txt
stasoid a6935299eb LibWeb: Correctly calculate static position rect when absolutely
positioned element is a descendant of inline-block

Sets inline block offsets in InlineFormattingContext.cpp, but this is
not enough. When static position rect is calculated during layout,
not all ancestors of abspos box may have their offsets calculated yet
(more info here: https://github.com/LadybirdBrowser/ladybird/pull/2583#issuecomment-2507140272).
So now static position rect is calculated relative to static containing
block during layout and calculation relative to actual containing block
is done later in
FormattingContext::layout_absolutely_positioned_element.

Fixes wpt/css/CSS2/abspos/static-inside-inline-block.html
2025-03-17 15:55:06 +01:00

20 lines
1.3 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x20 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x4 children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 4x4 [BFC] children: not-inline
Box <table> at (8,8) content-size 4x4 table-box [TFC] children: not-inline
Box <tbody> at (10,10) content-size 0x0 table-row-group children: not-inline
Box <tr> at (10,10) content-size 0x0 table-row children: not-inline
BlockContainer <(anonymous)> at (10,10) content-size 0x0 table-cell [BFC] children: not-inline
BlockContainer <td> at (11,11) content-size 0x0 positioned [BFC] children: not-inline
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x20]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x4]
PaintableWithLines (TableWrapper(anonymous)) [8,8 4x4]
PaintableBox (Box<TABLE>) [8,8 4x4]
PaintableBox (Box<TBODY>) [10,10 0x0]
PaintableBox (Box<TR>) [10,10 0x0]
PaintableWithLines (BlockContainer(anonymous)) [10,10 0x0]
PaintableWithLines (BlockContainer<TD>) [10,10 2x2]