mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 06:57:45 +00:00
LibWeb: Use available space to resolve table container width
Using avilable space directly while resolving table container width allows to avoid assigning it to table wrapper box content width which sometimes involves infinite (saturated) values. Also this allows to get rid of set_max_content_width() which is a hack that allows to bypass set_content_width() to assign infinite (saturated) width to a box. Closes https://github.com/SerenityOS/serenity/issues/19521
This commit is contained in:
parent
fb60db7b00
commit
9101c8d079
7 changed files with 42 additions and 35 deletions
21
Tests/LibWeb/Layout/expected/table/infinite-padding.txt
Normal file
21
Tests/LibWeb/Layout/expected/table/infinite-padding.txt
Normal file
|
@ -0,0 +1,21 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x16 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x0 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 0x0 [BFC] children: not-inline
|
||||
Box <div#box1> at (8,8) content-size 0x0 table-box [TFC] children: not-inline
|
||||
Box <(anonymous)> at (8,8) content-size 0x0 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> at (8,8) content-size 0x0 table-cell [BFC] children: not-inline
|
||||
BlockContainer <div> at (8,8) content-size 0x0 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 0x0 [BFC] children: not-inline
|
||||
Box <div#box2> at (8,8) content-size 0x0 table-box [TFC] children: not-inline
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x16]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x0]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 0x0]
|
||||
PaintableBox (Box<DIV>#box1) [8,8 0x0]
|
||||
PaintableBox (Box(anonymous)) [8,8 0x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [8,8 0x0]
|
||||
PaintableWithLines (BlockContainer<DIV>) [8,8 0x0]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 0x0]
|
||||
PaintableBox (Box<DIV>#box2) [8,8 0x0]
|
Loading…
Add table
Add a link
Reference in a new issue