mirror of
https://github.com/RGBCube/serenity
synced 2025-06-01 09:28:13 +00:00
LibWeb: Implement fixed table layout
This commit is contained in:
parent
97512d0c76
commit
ada05ab4e4
13 changed files with 716 additions and 22 deletions
|
@ -0,0 +1,99 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 598x42.9375 table-row-group children: not-inline
|
||||
Box <tr> at (9,9) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,11) content-size 62.4375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (77.4375,11) content-size 62.4375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [77.4375,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (143.875,11) content-size 128.890625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [143.875,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (276.765625,11) content-size 328.234375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [276.765625,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (9,30.46875) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,32.46875) content-size 62.4375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (77.4375,32.46875) content-size 62.4375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [77.4375,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (143.875,32.46875) content-size 128.890625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [143.875,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (276.765625,32.46875) content-size 328.234375x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [276.765625,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TBODY>) [9,9 598x42.9375]
|
||||
PaintableBox (Box<TR>) [9,9 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,9 66.4375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [75.4375,9 66.4375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [141.875,9 132.890625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [274.765625,9 332.234375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [9,30.46875 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,30.46875 66.4375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [75.4375,30.46875 66.4375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [141.875,30.46875 132.890625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [274.765625,30.46875 332.234375x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
|
@ -0,0 +1,99 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 597.96875x42.9375 table-row-group children: not-inline
|
||||
Box <tr> at (9,9) content-size 597.96875x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (110.65625,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [110.65625,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (210.3125,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [210.3125,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (309.96875,11) content-size 295x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [309.96875,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (9,30.46875) content-size 597.96875x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (110.65625,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [110.65625,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (210.3125,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [210.3125,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (309.96875,32.46875) content-size 295x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [309.96875,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TBODY>) [9,9 597.96875x42.9375]
|
||||
PaintableBox (Box<TR>) [9,9 597.96875x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,9 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [108.65625,9 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [208.3125,9 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [307.96875,9 299x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [9,30.46875 597.96875x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,30.46875 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [108.65625,30.46875 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [208.3125,30.46875 99.65625x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [307.96875,30.46875 299x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
|
@ -0,0 +1,99 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 598x42.9375 table-row-group children: not-inline
|
||||
Box <tr> at (9,9) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,11) content-size 58.578125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (73.578125,11) content-size 58.578125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [73.578125,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (136.15625,11) content-size 116.53125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [136.15625,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (256.6875,11) content-size 348.3125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [256.6875,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (9,30.46875) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,32.46875) content-size 58.578125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (73.578125,32.46875) content-size 58.578125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [73.578125,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (136.15625,32.46875) content-size 116.53125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [136.15625,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (256.6875,32.46875) content-size 348.3125x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [256.6875,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TBODY>) [9,9 598x42.9375]
|
||||
PaintableBox (Box<TR>) [9,9 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,9 62.578125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [71.578125,9 62.578125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [134.15625,9 120.53125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [254.6875,9 352.3125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [9,30.46875 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,30.46875 62.578125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [71.578125,30.46875 62.578125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [134.15625,30.46875 120.53125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [254.6875,30.46875 352.3125x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
105
Tests/LibWeb/Layout/expected/table/fixed-layout-pixel-width.txt
Normal file
105
Tests/LibWeb/Layout/expected/table/fixed-layout-pixel-width.txt
Normal file
|
@ -0,0 +1,105 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x80.8125 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 600x80.8125 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 598x78.8125 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 598x78.8125 table-row-group children: not-inline
|
||||
Box <tr> at (9,9) content-size 598x39.40625 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,19.96875) content-size 94x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,19.96875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (109,19.96875) content-size 94x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [109,19.96875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (207,11) content-size 94x35.40625 table-cell [BFC] children: inline
|
||||
line 0 width: 60.890625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [207,11 60.890625x17.46875]
|
||||
"A table"
|
||||
line 1 width: 26.078125, height: 17.9375, bottom: 35.40625, baseline: 13.53125
|
||||
frag 0 from TextNode start: 8, length: 4, rect: [207,28 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (305,19.96875) content-size 300x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [305,19.96875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (9,48.40625) content-size 598x39.40625 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,59.375) content-size 94x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,59.375 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (109,59.375) content-size 94x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [109,59.375 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (207,50.40625) content-size 94x35.40625 table-cell [BFC] children: inline
|
||||
line 0 width: 60.890625, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 7, rect: [207,50.40625 60.890625x17.46875]
|
||||
"A table"
|
||||
line 1 width: 26.078125, height: 17.9375, bottom: 35.40625, baseline: 13.53125
|
||||
frag 0 from TextNode start: 8, length: 4, rect: [207,67.40625 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (305,59.375) content-size 300x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [305,59.375 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x80.8125]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x80.8125]
|
||||
PaintableBox (Box<TABLE>) [8,8 600x80.8125]
|
||||
PaintableBox (Box<TBODY>) [9,9 598x78.8125]
|
||||
PaintableBox (Box<TR>) [9,9 598x39.40625]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,9 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [107,9 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [205,9 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [303,9 304x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [9,48.40625 598x39.40625]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,48.40625 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [107,48.40625 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [205,48.40625 98x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [303,48.40625 304x39.40625]
|
||||
TextPaintable (TextNode<#text>)
|
99
Tests/LibWeb/Layout/expected/table/fixed-layout.txt
Normal file
99
Tests/LibWeb/Layout/expected/table/fixed-layout.txt
Normal file
|
@ -0,0 +1,99 @@
|
|||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
||||
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
|
||||
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
|
||||
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
|
||||
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tbody> at (9,9) content-size 598x42.9375 table-row-group children: not-inline
|
||||
Box <tr> at (9,9) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,11) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (160.5,11) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [160.5,11 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (310,11) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [310,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (459.5,11) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [459.5,11 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
Box <tr> at (9,30.46875) content-size 598x21.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (11,32.46875) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (160.5,32.46875) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 4, rect: [160.5,32.46875 26.078125x17.46875]
|
||||
"cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (310,32.46875) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [310,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <td> at (459.5,32.46875) content-size 145.5x17.46875 table-cell [BFC] children: inline
|
||||
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 12, rect: [459.5,32.46875 94.96875x17.46875]
|
||||
"A table cell"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> (not painted) children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
|
||||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
|
||||
PaintableBox (Box<TBODY>) [9,9 598x42.9375]
|
||||
PaintableBox (Box<TR>) [9,9 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,9 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [158.5,9 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [308,9 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [457.5,9 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableBox (Box<TR>) [9,30.46875 598x21.46875]
|
||||
PaintableWithLines (BlockContainer<TD>) [9,30.46875 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [158.5,30.46875 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [308,30.46875 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer<TD>) [457.5,30.46875 149.5x21.46875]
|
||||
TextPaintable (TextNode<#text>)
|
|
@ -3,16 +3,16 @@ Viewport <#document> at (0,0) content-size 800x600 children: not-inline
|
|||
BlockContainer <body> at (8,8) content-size 784x17.46875 children: not-inline
|
||||
TableWrapper <(anonymous)> at (350,8) content-size 100x17.46875 [BFC] children: not-inline
|
||||
Box <div> at (350,8) content-size 100x17.46875 table-box [TFC] children: not-inline
|
||||
Box <(anonymous)> at (350,8) content-size 2000x17.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> at (350,8) content-size 2000x17.46875 table-cell [BFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (350,8) content-size 2000x0 children: inline
|
||||
Box <(anonymous)> at (350,8) content-size 100x17.46875 table-row children: not-inline
|
||||
BlockContainer <(anonymous)> at (350,8) content-size 100x17.46875 table-cell [BFC] children: not-inline
|
||||
BlockContainer <(anonymous)> at (350,8) content-size 100x0 children: inline
|
||||
TextNode <#text>
|
||||
BlockContainer <div> at (350,8) content-size 2000x17.46875 children: inline
|
||||
line 0 width: 6.34375, height: 17.46875, bottom: 17.46875, baseline: 13.53125
|
||||
frag 0 from TextNode start: 0, length: 1, rect: [350,8 6.34375x17.46875]
|
||||
"1"
|
||||
TextNode <#text>
|
||||
BlockContainer <(anonymous)> at (350,25.46875) content-size 2000x0 children: inline
|
||||
BlockContainer <(anonymous)> at (350,25.46875) content-size 100x0 children: inline
|
||||
TextNode <#text>
|
||||
|
||||
PaintableWithLines (Viewport<#document>) [0,0 800x600] overflow: [0,0 2350x600]
|
||||
|
@ -20,9 +20,9 @@ PaintableWithLines (Viewport<#document>) [0,0 800x600] overflow: [0,0 2350x600]
|
|||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x17.46875] overflow: [8,8 2342x17.46875]
|
||||
PaintableWithLines (TableWrapper(anonymous)) [350,8 100x17.46875] overflow: [350,8 2000x17.46875]
|
||||
PaintableBox (Box<DIV>) [350,8 100x17.46875] overflow: [350,8 2000x17.46875]
|
||||
PaintableBox (Box(anonymous)) [350,8 2000x17.46875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,8 2000x17.46875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,8 2000x0]
|
||||
PaintableBox (Box(anonymous)) [350,8 100x17.46875] overflow: [350,8 2000x17.46875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,8 100x17.46875] overflow: [350,8 2000x17.46875]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,8 100x0]
|
||||
PaintableWithLines (BlockContainer<DIV>) [350,8 2000x17.46875]
|
||||
TextPaintable (TextNode<#text>)
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,25.46875 2000x0]
|
||||
PaintableWithLines (BlockContainer(anonymous)) [350,25.46875 100x0]
|
||||
|
|
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
table {
|
||||
width: 600px;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 10%">cell</td>
|
||||
<td style="width: 10%">cell</td>
|
||||
<td style="width: 20%">A table cell</td>
|
||||
<td style="width: 50%">A table cell</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
table {
|
||||
width: 600px;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td style="width: 50%">A table cell</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
table {
|
||||
width: 600px;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td style="width: 50px">cell</td>
|
||||
<td style="width: 50px">cell</td>
|
||||
<td style="width: 100px">A table cell</td>
|
||||
<td style="width: 300px">A table cell</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
</table>
|
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
table {
|
||||
width: 600px;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td style="width: 300px">A table cell</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
</table>
|
27
Tests/LibWeb/Layout/input/table/fixed-layout.html
Normal file
27
Tests/LibWeb/Layout/input/table/fixed-layout.html
Normal file
|
@ -0,0 +1,27 @@
|
|||
<style>
|
||||
table {
|
||||
width: 600px;
|
||||
table-layout: fixed;
|
||||
border-collapse: collapse;
|
||||
border: 1px solid black;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
|
||||
<table>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>cell</td>
|
||||
<td>cell</td>
|
||||
<td>A table cell</td>
|
||||
<td>A table cell</td>
|
||||
</tr>
|
||||
</table>
|
Loading…
Add table
Add a link
Reference in a new issue