Previously, `greatest_child_width()` was used, which finds the maximum margin box width among direct children. This is incorrect for tables, whose width is determined by column distribution rather than by simply finding the widest child. We now return the table's computed content width instead, which already holds the correct value after layout.
20 lines
1.4 KiB
Text
20 lines
1.4 KiB
Text
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 140 0+0+0] [BFC] children: not-inline
|
|
BlockContainer <body> at [8,8] [8+0+0 784 0+0+8] [8+0+0 124 0+0+8] children: not-inline
|
|
TableWrapper <(anonymous)> at [8,8] [0+0+0 126 0+0+658] [0+0+0 124 0+0+0] [BFC] children: not-inline
|
|
Box <table.table> at [18,18] table-box [0+10+0 106 0+10+0] [0+10+0 104 0+10+0] [TFC] children: not-inline
|
|
Box <tbody> at [20,20] table-row-group [0+0+0 102 0+0+0] [0+0+0 100 0+0+0] children: not-inline
|
|
Box <tr> at [20,20] table-row [0+0+0 102 0+0+0] [0+0+0 100 0+0+0] children: not-inline
|
|
BlockContainer <td> at [21,70] table-cell [0+0+1 100 1+0+0] [0+0+50 0 50+0+0] [BFC] children: not-inline
|
|
|
|
ViewportPaintable (Viewport<#document>) [0,0 800x600]
|
|
PaintableWithLines (BlockContainer<HTML>) [0,0 800x140]
|
|
PaintableWithLines (BlockContainer<BODY>) [8,8 784x124]
|
|
PaintableWithLines (TableWrapper(anonymous)) [8,8 126x124]
|
|
PaintableBox (Box<TABLE>.table) [8,8 126x124]
|
|
PaintableBox (Box<TBODY>) [20,20 102x100]
|
|
PaintableBox (Box<TR>) [20,20 102x100]
|
|
PaintableWithLines (BlockContainer<TD>) [20,20 102x100]
|
|
|
|
SC for Viewport<#document> [0,0 800x600] [children: 1] (z-index: auto)
|
|
SC for BlockContainer<HTML> [0,0 800x140] [children: 0] (z-index: auto)
|