Files
ladybird/Tests/LibWeb/Layout/expected/table/long-caption-increases-width.txt
Tim Ledbetter 04ec4c0256 LibWeb: Resolve horizontal box model metrics for table captions
Previously, horizontal padding, border, and margin were not being
resolved for table captions. This was visible in layout tests where
captions with padding showed 0 in the width metrics.
2026-02-03 14:47:51 +01:00

117 lines
7.6 KiB
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 164 0+0+0] [BFC] children: not-inline
BlockContainer <(anonymous)> at [0,0] [0+0+0 800 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 148 0+0+8] children: not-inline
TableWrapper <(anonymous)> at [8,8] [0+0+0 63.046875 0+0+720.953125] [0+0+0 148 0+0+0] [BFC] children: not-inline
Box <table#full-table> at [10,44] table-box [0+2+0 59.046875 0+2+0] [0+2+0 74 0+2+36] [TFC] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <caption> at [8,8] [0+0+0 63.046875 0+0+0] [0+0+0 36 0+0+0] [BFC] children: inline
frag 0 from TextNode start: 5, length: 6, rect: [12.5,8 54.03125x18] baseline: 13.796875
"A long"
frag 1 from TextNode start: 12, length: 7, rect: [10,26 59.046875x18] baseline: 13.796875
"caption"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <thead> at [12,46] table-header-group [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <tr> at [12,46] table-row [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [14,48] table-cell [0+1+1 21.25 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [14,48 20.609375x18] baseline: 13.796875
"A1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [41.25,48] table-cell [0+1+1 23.796875 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [41.25,48 23.078125x18] baseline: 13.796875
"A2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <tbody> at [12,70] table-row-group [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <tr> at [12,70] table-row [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [14,72] table-cell [0+1+1 21.25 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [14,72 15.6875x18] baseline: 13.796875
"B1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [41.25,72] table-cell [0+1+1 23.796875 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [41.25,72 18.15625x18] baseline: 13.796875
"B2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <tfoot> at [12,94] table-footer-group [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
Box <tr> at [12,94] table-row [0+0+0 55.046875 0+0+0] [0+0+0 22 0+0+0] children: not-inline
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [14,96] table-cell [0+1+1 21.25 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [14,96 18.890625x18] baseline: 13.796875
"F1"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <td> at [41.25,96] table-cell [0+1+1 23.796875 1+1+0] [0+1+1 18 1+1+0] [BFC] children: inline
frag 0 from TextNode start: 0, length: 2, rect: [41.25,96 21.359375x18] baseline: 13.796875
"F2"
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> (not painted) children: inline
TextNode <#text> (not painted)
BlockContainer <(anonymous)> at [8,156] [0+0+0 784 0+0+0] [0+0+0 0 0+0+0] children: inline
TextNode <#text> (not painted)
ViewportPaintable (Viewport<#document>) [0,0 800x600]
PaintableWithLines (BlockContainer<HTML>) [0,0 800x164]
PaintableWithLines (BlockContainer(anonymous)) [0,0 800x0]
PaintableWithLines (BlockContainer<BODY>) [8,8 784x148]
PaintableWithLines (TableWrapper(anonymous)) [8,8 63.046875x148]
PaintableBox (Box<TABLE>#full-table) [8,42 63.046875x78]
PaintableWithLines (BlockContainer<CAPTION>) [8,8 63.046875x36]
TextPaintable (TextNode<#text>)
PaintableBox (Box<THEAD>) [12,46 55.046875x22]
PaintableBox (Box<TR>) [12,46 55.046875x22]
PaintableWithLines (BlockContainer<TD>) [12,46 25.25x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [39.25,46 27.796875x22]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TBODY>) [12,70 55.046875x22]
PaintableBox (Box<TR>) [12,70 55.046875x22]
PaintableWithLines (BlockContainer<TD>) [12,70 25.25x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [39.25,70 27.796875x22]
TextPaintable (TextNode<#text>)
PaintableBox (Box<TFOOT>) [12,94 55.046875x22]
PaintableBox (Box<TR>) [12,94 55.046875x22]
PaintableWithLines (BlockContainer<TD>) [12,94 25.25x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer<TD>) [39.25,94 27.796875x22]
TextPaintable (TextNode<#text>)
PaintableWithLines (BlockContainer(anonymous)) [8,156 784x0]
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
SC for BlockContainer<HTML> [0,0 800x164] [children: 0] (z-index: auto)