mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +00:00
LibWeb: Don't subtract border from used table width
The used width is already a content width, which doesn't include borders. Border widths should be subtracted from the specified width instead, since that initially specifies the total width including borders, for consistent comparison. Also handle table box padding as an additional fix.
This commit is contained in:
parent
1f95a40780
commit
2c4908094c
18 changed files with 133 additions and 86 deletions
|
@ -5,8 +5,8 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <body> at (8,8) content-size 784x259.34375 children: not-inline
|
||||
BlockContainer <(anonymous)> at (8,8) content-size 784x0 children: inline
|
||||
TextNode <#text>
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 239.90625x259.34375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 239.90625x257.34375 table-box [TFC] children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 241.90625x259.34375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 241.90625x257.34375 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 161.90625x197.34375 table-row-group children: not-inline
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue