Skip to content

Commit ada05ab

Browse files
axgalloAtkinsSJ
authored andcommitted
LibWeb: Implement fixed table layout
1 parent 97512d0 commit ada05ab

13 files changed

+716
-22
lines changed
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
2+
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
3+
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
4+
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
5+
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
6+
BlockContainer <(anonymous)> (not painted) children: inline
7+
TextNode <#text>
8+
Box <tbody> at (9,9) content-size 598x42.9375 table-row-group children: not-inline
9+
Box <tr> at (9,9) content-size 598x21.46875 table-row children: not-inline
10+
BlockContainer <(anonymous)> (not painted) children: inline
11+
TextNode <#text>
12+
BlockContainer <td> at (11,11) content-size 62.4375x17.46875 table-cell [BFC] children: inline
13+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
14+
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
15+
"cell"
16+
TextNode <#text>
17+
BlockContainer <(anonymous)> (not painted) children: inline
18+
TextNode <#text>
19+
BlockContainer <td> at (77.4375,11) content-size 62.4375x17.46875 table-cell [BFC] children: inline
20+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
21+
frag 0 from TextNode start: 0, length: 4, rect: [77.4375,11 26.078125x17.46875]
22+
"cell"
23+
TextNode <#text>
24+
BlockContainer <(anonymous)> (not painted) children: inline
25+
TextNode <#text>
26+
BlockContainer <td> at (143.875,11) content-size 128.890625x17.46875 table-cell [BFC] children: inline
27+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
28+
frag 0 from TextNode start: 0, length: 12, rect: [143.875,11 94.96875x17.46875]
29+
"A table cell"
30+
TextNode <#text>
31+
BlockContainer <(anonymous)> (not painted) children: inline
32+
TextNode <#text>
33+
BlockContainer <td> at (276.765625,11) content-size 328.234375x17.46875 table-cell [BFC] children: inline
34+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
35+
frag 0 from TextNode start: 0, length: 12, rect: [276.765625,11 94.96875x17.46875]
36+
"A table cell"
37+
TextNode <#text>
38+
BlockContainer <(anonymous)> (not painted) children: inline
39+
TextNode <#text>
40+
BlockContainer <(anonymous)> (not painted) children: inline
41+
TextNode <#text>
42+
Box <tr> at (9,30.46875) content-size 598x21.46875 table-row children: not-inline
43+
BlockContainer <(anonymous)> (not painted) children: inline
44+
TextNode <#text>
45+
BlockContainer <td> at (11,32.46875) content-size 62.4375x17.46875 table-cell [BFC] children: inline
46+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
47+
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
48+
"cell"
49+
TextNode <#text>
50+
BlockContainer <(anonymous)> (not painted) children: inline
51+
TextNode <#text>
52+
BlockContainer <td> at (77.4375,32.46875) content-size 62.4375x17.46875 table-cell [BFC] children: inline
53+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
54+
frag 0 from TextNode start: 0, length: 4, rect: [77.4375,32.46875 26.078125x17.46875]
55+
"cell"
56+
TextNode <#text>
57+
BlockContainer <(anonymous)> (not painted) children: inline
58+
TextNode <#text>
59+
BlockContainer <td> at (143.875,32.46875) content-size 128.890625x17.46875 table-cell [BFC] children: inline
60+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
61+
frag 0 from TextNode start: 0, length: 12, rect: [143.875,32.46875 94.96875x17.46875]
62+
"A table cell"
63+
TextNode <#text>
64+
BlockContainer <(anonymous)> (not painted) children: inline
65+
TextNode <#text>
66+
BlockContainer <td> at (276.765625,32.46875) content-size 328.234375x17.46875 table-cell [BFC] children: inline
67+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
68+
frag 0 from TextNode start: 0, length: 12, rect: [276.765625,32.46875 94.96875x17.46875]
69+
"A table cell"
70+
TextNode <#text>
71+
BlockContainer <(anonymous)> (not painted) children: inline
72+
TextNode <#text>
73+
BlockContainer <(anonymous)> (not painted) children: inline
74+
TextNode <#text>
75+
76+
PaintableWithLines (Viewport<#document>) [0,0 800x600]
77+
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
78+
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
79+
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
80+
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
81+
PaintableBox (Box<TBODY>) [9,9 598x42.9375]
82+
PaintableBox (Box<TR>) [9,9 598x21.46875]
83+
PaintableWithLines (BlockContainer<TD>) [9,9 66.4375x21.46875]
84+
TextPaintable (TextNode<#text>)
85+
PaintableWithLines (BlockContainer<TD>) [75.4375,9 66.4375x21.46875]
86+
TextPaintable (TextNode<#text>)
87+
PaintableWithLines (BlockContainer<TD>) [141.875,9 132.890625x21.46875]
88+
TextPaintable (TextNode<#text>)
89+
PaintableWithLines (BlockContainer<TD>) [274.765625,9 332.234375x21.46875]
90+
TextPaintable (TextNode<#text>)
91+
PaintableBox (Box<TR>) [9,30.46875 598x21.46875]
92+
PaintableWithLines (BlockContainer<TD>) [9,30.46875 66.4375x21.46875]
93+
TextPaintable (TextNode<#text>)
94+
PaintableWithLines (BlockContainer<TD>) [75.4375,30.46875 66.4375x21.46875]
95+
TextPaintable (TextNode<#text>)
96+
PaintableWithLines (BlockContainer<TD>) [141.875,30.46875 132.890625x21.46875]
97+
TextPaintable (TextNode<#text>)
98+
PaintableWithLines (BlockContainer<TD>) [274.765625,30.46875 332.234375x21.46875]
99+
TextPaintable (TextNode<#text>)
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
2+
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
3+
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
4+
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
5+
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
6+
BlockContainer <(anonymous)> (not painted) children: inline
7+
TextNode <#text>
8+
Box <tbody> at (9,9) content-size 597.96875x42.9375 table-row-group children: not-inline
9+
Box <tr> at (9,9) content-size 597.96875x21.46875 table-row children: not-inline
10+
BlockContainer <(anonymous)> (not painted) children: inline
11+
TextNode <#text>
12+
BlockContainer <td> at (11,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
13+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
14+
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
15+
"cell"
16+
TextNode <#text>
17+
BlockContainer <(anonymous)> (not painted) children: inline
18+
TextNode <#text>
19+
BlockContainer <td> at (110.65625,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
20+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
21+
frag 0 from TextNode start: 0, length: 4, rect: [110.65625,11 26.078125x17.46875]
22+
"cell"
23+
TextNode <#text>
24+
BlockContainer <(anonymous)> (not painted) children: inline
25+
TextNode <#text>
26+
BlockContainer <td> at (210.3125,11) content-size 95.65625x17.46875 table-cell [BFC] children: inline
27+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
28+
frag 0 from TextNode start: 0, length: 12, rect: [210.3125,11 94.96875x17.46875]
29+
"A table cell"
30+
TextNode <#text>
31+
BlockContainer <(anonymous)> (not painted) children: inline
32+
TextNode <#text>
33+
BlockContainer <td> at (309.96875,11) content-size 295x17.46875 table-cell [BFC] children: inline
34+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
35+
frag 0 from TextNode start: 0, length: 12, rect: [309.96875,11 94.96875x17.46875]
36+
"A table cell"
37+
TextNode <#text>
38+
BlockContainer <(anonymous)> (not painted) children: inline
39+
TextNode <#text>
40+
BlockContainer <(anonymous)> (not painted) children: inline
41+
TextNode <#text>
42+
Box <tr> at (9,30.46875) content-size 597.96875x21.46875 table-row children: not-inline
43+
BlockContainer <(anonymous)> (not painted) children: inline
44+
TextNode <#text>
45+
BlockContainer <td> at (11,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
46+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
47+
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
48+
"cell"
49+
TextNode <#text>
50+
BlockContainer <(anonymous)> (not painted) children: inline
51+
TextNode <#text>
52+
BlockContainer <td> at (110.65625,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
53+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
54+
frag 0 from TextNode start: 0, length: 4, rect: [110.65625,32.46875 26.078125x17.46875]
55+
"cell"
56+
TextNode <#text>
57+
BlockContainer <(anonymous)> (not painted) children: inline
58+
TextNode <#text>
59+
BlockContainer <td> at (210.3125,32.46875) content-size 95.65625x17.46875 table-cell [BFC] children: inline
60+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
61+
frag 0 from TextNode start: 0, length: 12, rect: [210.3125,32.46875 94.96875x17.46875]
62+
"A table cell"
63+
TextNode <#text>
64+
BlockContainer <(anonymous)> (not painted) children: inline
65+
TextNode <#text>
66+
BlockContainer <td> at (309.96875,32.46875) content-size 295x17.46875 table-cell [BFC] children: inline
67+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
68+
frag 0 from TextNode start: 0, length: 12, rect: [309.96875,32.46875 94.96875x17.46875]
69+
"A table cell"
70+
TextNode <#text>
71+
BlockContainer <(anonymous)> (not painted) children: inline
72+
TextNode <#text>
73+
BlockContainer <(anonymous)> (not painted) children: inline
74+
TextNode <#text>
75+
76+
PaintableWithLines (Viewport<#document>) [0,0 800x600]
77+
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
78+
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
79+
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
80+
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
81+
PaintableBox (Box<TBODY>) [9,9 597.96875x42.9375]
82+
PaintableBox (Box<TR>) [9,9 597.96875x21.46875]
83+
PaintableWithLines (BlockContainer<TD>) [9,9 99.65625x21.46875]
84+
TextPaintable (TextNode<#text>)
85+
PaintableWithLines (BlockContainer<TD>) [108.65625,9 99.65625x21.46875]
86+
TextPaintable (TextNode<#text>)
87+
PaintableWithLines (BlockContainer<TD>) [208.3125,9 99.65625x21.46875]
88+
TextPaintable (TextNode<#text>)
89+
PaintableWithLines (BlockContainer<TD>) [307.96875,9 299x21.46875]
90+
TextPaintable (TextNode<#text>)
91+
PaintableBox (Box<TR>) [9,30.46875 597.96875x21.46875]
92+
PaintableWithLines (BlockContainer<TD>) [9,30.46875 99.65625x21.46875]
93+
TextPaintable (TextNode<#text>)
94+
PaintableWithLines (BlockContainer<TD>) [108.65625,30.46875 99.65625x21.46875]
95+
TextPaintable (TextNode<#text>)
96+
PaintableWithLines (BlockContainer<TD>) [208.3125,30.46875 99.65625x21.46875]
97+
TextPaintable (TextNode<#text>)
98+
PaintableWithLines (BlockContainer<TD>) [307.96875,30.46875 299x21.46875]
99+
TextPaintable (TextNode<#text>)
Lines changed: 99 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,99 @@
1+
Viewport <#document> at (0,0) content-size 800x600 children: not-inline
2+
BlockContainer <html> at (0,0) content-size 800x600 [BFC] children: not-inline
3+
BlockContainer <body> at (8,8) content-size 784x44.9375 children: not-inline
4+
TableWrapper <(anonymous)> at (8,8) content-size 600x44.9375 [BFC] children: not-inline
5+
Box <table> at (9,9) content-size 598x42.9375 table-box [TFC] children: not-inline
6+
BlockContainer <(anonymous)> (not painted) children: inline
7+
TextNode <#text>
8+
Box <tbody> at (9,9) content-size 598x42.9375 table-row-group children: not-inline
9+
Box <tr> at (9,9) content-size 598x21.46875 table-row children: not-inline
10+
BlockContainer <(anonymous)> (not painted) children: inline
11+
TextNode <#text>
12+
BlockContainer <td> at (11,11) content-size 58.578125x17.46875 table-cell [BFC] children: inline
13+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
14+
frag 0 from TextNode start: 0, length: 4, rect: [11,11 26.078125x17.46875]
15+
"cell"
16+
TextNode <#text>
17+
BlockContainer <(anonymous)> (not painted) children: inline
18+
TextNode <#text>
19+
BlockContainer <td> at (73.578125,11) content-size 58.578125x17.46875 table-cell [BFC] children: inline
20+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
21+
frag 0 from TextNode start: 0, length: 4, rect: [73.578125,11 26.078125x17.46875]
22+
"cell"
23+
TextNode <#text>
24+
BlockContainer <(anonymous)> (not painted) children: inline
25+
TextNode <#text>
26+
BlockContainer <td> at (136.15625,11) content-size 116.53125x17.46875 table-cell [BFC] children: inline
27+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
28+
frag 0 from TextNode start: 0, length: 12, rect: [136.15625,11 94.96875x17.46875]
29+
"A table cell"
30+
TextNode <#text>
31+
BlockContainer <(anonymous)> (not painted) children: inline
32+
TextNode <#text>
33+
BlockContainer <td> at (256.6875,11) content-size 348.3125x17.46875 table-cell [BFC] children: inline
34+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
35+
frag 0 from TextNode start: 0, length: 12, rect: [256.6875,11 94.96875x17.46875]
36+
"A table cell"
37+
TextNode <#text>
38+
BlockContainer <(anonymous)> (not painted) children: inline
39+
TextNode <#text>
40+
BlockContainer <(anonymous)> (not painted) children: inline
41+
TextNode <#text>
42+
Box <tr> at (9,30.46875) content-size 598x21.46875 table-row children: not-inline
43+
BlockContainer <(anonymous)> (not painted) children: inline
44+
TextNode <#text>
45+
BlockContainer <td> at (11,32.46875) content-size 58.578125x17.46875 table-cell [BFC] children: inline
46+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
47+
frag 0 from TextNode start: 0, length: 4, rect: [11,32.46875 26.078125x17.46875]
48+
"cell"
49+
TextNode <#text>
50+
BlockContainer <(anonymous)> (not painted) children: inline
51+
TextNode <#text>
52+
BlockContainer <td> at (73.578125,32.46875) content-size 58.578125x17.46875 table-cell [BFC] children: inline
53+
line 0 width: 26.078125, height: 17.46875, bottom: 17.46875, baseline: 13.53125
54+
frag 0 from TextNode start: 0, length: 4, rect: [73.578125,32.46875 26.078125x17.46875]
55+
"cell"
56+
TextNode <#text>
57+
BlockContainer <(anonymous)> (not painted) children: inline
58+
TextNode <#text>
59+
BlockContainer <td> at (136.15625,32.46875) content-size 116.53125x17.46875 table-cell [BFC] children: inline
60+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
61+
frag 0 from TextNode start: 0, length: 12, rect: [136.15625,32.46875 94.96875x17.46875]
62+
"A table cell"
63+
TextNode <#text>
64+
BlockContainer <(anonymous)> (not painted) children: inline
65+
TextNode <#text>
66+
BlockContainer <td> at (256.6875,32.46875) content-size 348.3125x17.46875 table-cell [BFC] children: inline
67+
line 0 width: 94.96875, height: 17.46875, bottom: 17.46875, baseline: 13.53125
68+
frag 0 from TextNode start: 0, length: 12, rect: [256.6875,32.46875 94.96875x17.46875]
69+
"A table cell"
70+
TextNode <#text>
71+
BlockContainer <(anonymous)> (not painted) children: inline
72+
TextNode <#text>
73+
BlockContainer <(anonymous)> (not painted) children: inline
74+
TextNode <#text>
75+
76+
PaintableWithLines (Viewport<#document>) [0,0 800x600]
77+
PaintableWithLines (BlockContainer<HTML>) [0,0 800x600]
78+
PaintableWithLines (BlockContainer<BODY>) [8,8 784x44.9375]
79+
PaintableWithLines (TableWrapper(anonymous)) [8,8 600x44.9375]
80+
PaintableBox (Box<TABLE>) [8,8 600x44.9375]
81+
PaintableBox (Box<TBODY>) [9,9 598x42.9375]
82+
PaintableBox (Box<TR>) [9,9 598x21.46875]
83+
PaintableWithLines (BlockContainer<TD>) [9,9 62.578125x21.46875]
84+
TextPaintable (TextNode<#text>)
85+
PaintableWithLines (BlockContainer<TD>) [71.578125,9 62.578125x21.46875]
86+
TextPaintable (TextNode<#text>)
87+
PaintableWithLines (BlockContainer<TD>) [134.15625,9 120.53125x21.46875]
88+
TextPaintable (TextNode<#text>)
89+
PaintableWithLines (BlockContainer<TD>) [254.6875,9 352.3125x21.46875]
90+
TextPaintable (TextNode<#text>)
91+
PaintableBox (Box<TR>) [9,30.46875 598x21.46875]
92+
PaintableWithLines (BlockContainer<TD>) [9,30.46875 62.578125x21.46875]
93+
TextPaintable (TextNode<#text>)
94+
PaintableWithLines (BlockContainer<TD>) [71.578125,30.46875 62.578125x21.46875]
95+
TextPaintable (TextNode<#text>)
96+
PaintableWithLines (BlockContainer<TD>) [134.15625,30.46875 120.53125x21.46875]
97+
TextPaintable (TextNode<#text>)
98+
PaintableWithLines (BlockContainer<TD>) [254.6875,30.46875 352.3125x21.46875]
99+
TextPaintable (TextNode<#text>)

0 commit comments

Comments
 (0)