1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 10:37:45 +00:00

LibWeb: Set table width to GRIDMAX if calculated value is max-content

If the width of the table container is specified as max-content, then
it seems sensible to resolve it as the sum of the maximum widths of the
columns.
This commit is contained in:
Aliaksandr Kalenik 2023-10-31 17:41:41 +01:00 committed by Andreas Kling
parent 387ab57eb1
commit 4676b288a2
3 changed files with 26 additions and 0 deletions

View file

@ -0,0 +1,17 @@
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
BlockContainer <html> at (0,0) content-size 800x140 [BFC] children: not-inline
BlockContainer <body> at (8,8) content-size 784x124 children: not-inline
TableWrapper <(anonymous)> at (8,8) content-size 126x124 [BFC] children: not-inline
Box <table.table> at (18,18) content-size 106x104 table-box [TFC] children: not-inline
Box <tbody> at (18,18) content-size 102x100 table-row-group children: not-inline
Box <tr> at (20,20) content-size 102x100 table-row children: not-inline
BlockContainer <td> at (21,70) content-size 100x0 table-cell [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>) [18,18 102x100] overflow: [18,18 104x102]
PaintableBox (Box<TR>) [20,20 102x100]
PaintableWithLines (BlockContainer<TD>) [20,20 102x100]