Files
ladybird/Tests/LibWeb/Layout/expected/table/acid2-reduction.txt
Aliaksandr Kalenik 7b75d0c1f0 LibWeb: Fix height distribution in "vertical-align: baseline" in TFC
This line changes padding top to align cell content to baseline:
`cell.padding_top += m_rows[cell.row_index].baseline - cell.baseline`

Which means available for distribution height `height_diff` could have
changed so it needs to be refreshed before assigning the rest of it to
padding bottom:
`cell_state.padding_bottom += height_diff;`

Fixes https://github.com/SerenityOS/serenity/issues/22032
2024-04-19 10:55:28 +02:00

22 lines
1.5 KiB
Plaintext

Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x66 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x50 children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 100x50 [BFC] children: not-inline
Box <div.table> at (8,8) content-size 100x50 table-box [TFC] children: not-inline
Box <(anonymous)> at (8,8) content-size 100x50 table-row children: not-inline
BlockContainer <(anonymous)> at (8,8) content-size 50x50 table-cell [BFC] children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 50x50 [BFC] children: not-inline
Box <div.second-part> at (8,8) content-size 50x50 table-box [TFC] children: not-inline
BlockContainer <div.third-part> at (58,58) content-size 50x0 table-cell [BFC] children: not-inline
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x66]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x50]
PaintableWithLines (TableWrapper(anonymous)) [8,8 100x50]
PaintableBox (Box<DIV>.table) [8,8 100x50]
PaintableBox (Box(anonymous)) [8,8 100x50]
PaintableWithLines (BlockContainer(anonymous)) [8,8 50x50]
PaintableWithLines (TableWrapper(anonymous)) [8,8 50x50]
PaintableBox (Box<DIV>.second-part) [8,8 50x50]
PaintableWithLines (BlockContainer<DIV>.third-part) [58,8 50x50]