mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 23:27:43 +00:00
LibWeb: Exclude table-wrapper margins from table available width
Table should not take up more width than is available inside wrapper after margins are taken in account.
This commit is contained in:
parent
4d971b5bc5
commit
09d698e0a0
5 changed files with 94 additions and 1 deletions
12
Tests/LibWeb/Layout/expected/table/auto-margins.txt
Normal file
12
Tests/LibWeb/Layout/expected/table/auto-margins.txt
Normal file
|
@ -0,0 +1,12 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x33.46875 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x17.46875 children: not-inline
|
||||
BlockContainer <div.wrapper> at (8,8) content-size 784x17.46875 children: not-inline
|
||||
TableWrapper <(anonymous)> at (235.265625,8) content-size 329.46875x17.46875 [BFC] children: not-inline
|
||||
TableBox <div.box> at (235.265625,8) content-size 329.46875x17.46875 [TFC] children: not-inline
|
||||
TableRowBox <(anonymous)> at (235.265625,8) content-size 329.46875x17.46875 children: not-inline
|
||||
TableCellBox <div.cell> at (235.265625,8) content-size 329.46875x17.46875 [BFC] children: inline
|
||||
line 0 width: 329.46875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 34, rect: [235.265625,8 329.46875x17.46875]
|
||||
"DaTa DisplaYiNg CSS WeBpaGE ScReEn"
|
||||
TextNode <#text>
|
15
Tests/LibWeb/Layout/expected/table/fixed-margins.txt
Normal file
15
Tests/LibWeb/Layout/expected/table/fixed-margins.txt
Normal file
|
@ -0,0 +1,15 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x51.40625 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x35.40625 children: not-inline
|
||||
BlockContainer <div.wrapper> at (8,8) content-size 784x35.40625 children: not-inline
|
||||
TableWrapper <(anonymous)> at (108,8) content-size 584x35.40625 [BFC] children: not-inline
|
||||
TableBox <div.box> at (108,8) content-size 584x35.40625 [TFC] children: not-inline
|
||||
TableRowBox <(anonymous)> at (108,8) content-size 584x35.40625 children: not-inline
|
||||
TableCellBox <div.cell> at (108,8) content-size 584x35.40625 [BFC] children: inline
|
||||
line 0 width: 569.859375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 58, rect: [108,8 569.859375x17.46875]
|
||||
"DaTa DisplaYiNg CSS WeBpaGE ScReEn OF aR AddITioN COmmOnLY"
|
||||
line 1 width: 399.9375, height: 17.9375, bottom: 35.40625, baseline: 13.53125
|
||||
frag 0 from TextNode start: 59, length: 40, rect: [108,25 399.9375x17.46875]
|
||||
"To AdJuSt PRiCiNG sTYLiNG ceLL oF TAbLeS"
|
||||
TextNode <#text>
|
Loading…
Add table
Add a link
Reference in a new issue