1 layer at (0,0) size 1496x899
2 RenderView at (0,0) size 800x600
3 layer at (0,0) size 800x899
4 RenderBlock {HTML} at (0,0) size 800x898.88
5 RenderBody {BODY} at (8,21.44) size 784x869.44
6 RenderBlock {H1} at (0,0) size 784x37
7 RenderText {#text} at (0,0) size 290x37
8 text run at (0,0) width 290: "Table Border Models"
9 RenderBlock {P} at (0,58.44) size 784x18
10 RenderText {#text} at (0,0) size 117x18
11 text run at (0,0) width 117: "This tests tests the "
12 RenderInline {A} at (0,0) size 208x18 [color=#0000EE]
13 RenderText {#text} at (117,0) size 208x18
14 text run at (117,0) width 208: "CSS2 spec rules on table borders"
15 RenderText {#text} at (325,0) size 180x18
16 text run at (325,0) width 8: ". "
17 text run at (333,0) width 172: "The styles applied here are:"
18 RenderBlock {PRE} at (0,92.44) size 784x180
19 RenderText {#text} at (0,0) size 688x180
20 text run at (0,0) width 408: "TABLE { margin: 1em; border: medium solid blue; }"
21 text run at (408,0) width 0: " "
22 text run at (0,15) width 376: "TD { border: thin solid green; padding: 5px; }"
23 text run at (376,15) width 0: " "
24 text run at (0,30) width 392: "TH { border: medium solid purple; padding: 5px; }"
25 text run at (392,30) width 0: " "
26 text run at (0,45) width 360: "TABLE.one, TABLE.two { border-spacing: 1em; }"
27 text run at (360,45) width 0: " "
28 text run at (0,60) width 320: "TABLE.one { border-collapse: collapse; }"
29 text run at (320,60) width 0: " "
30 text run at (0,75) width 320: "TABLE.two { border-collapse: separate; }"
31 text run at (320,75) width 0: " "
32 text run at (0,90) width 536: "TABLE.three { border-collapse: separate; border-spacing: 0 0.5em; }"
33 text run at (536,90) width 0: " "
34 text run at (0,105) width 528: "TABLE.four { border-collapse: separate; border-spacing: 0.5em 0; }"
35 text run at (528,105) width 0: " "
36 text run at (0,120) width 328: "TABLE.five { border-collapse: separate; }"
37 text run at (328,120) width 0: " "
38 text run at (0,135) width 464: "TABLE.five, TABLE.five TD, TABLE.five TH { border: none; }"
39 text run at (464,135) width 0: " "
40 text run at (0,150) width 688: "TABLE.five TR, TABLE.five COL, TABLE.five COLGROUP, TABLE.five TBODY, TABLE.five THEAD"
41 text run at (688,150) width 0: " "
42 text run at (0,165) width 264: " { border: medium solid red; }"
43 text run at (264,165) width 0: " "
44 RenderBlock {DIV} at (0,285.44) size 1488x584
45 RenderTable {TABLE} at (16,16) size 238x552 [border: (1px solid #0000FF)]
46 RenderTableSection {TBODY} at (1,1) size 235x549
47 RenderTableRow {TR} at (0,0) size 31x549
48 RenderTableCell {TH} at (0,0) size 31x184 [border: (2px solid #800080)] [r=0 c=0 rs=1 cs=1]
49 RenderText {#text} at (6,51) size 18x83
50 text run at (6,51) width 82: "Header One"
51 RenderTableCell {TH} at (0,184) size 31x173 [border: (2px solid #800080)] [r=0 c=1 rs=1 cs=1]
52 RenderText {#text} at (6,44) size 18x86
53 text run at (6,44) width 85: "Header Two"
54 RenderTableCell {TH} at (0,357) size 31x192 [border: (2px solid #800080)] [r=0 c=2 rs=1 cs=1]
55 RenderText {#text} at (6,49) size 18x95
56 text run at (6,49) width 95: "Header Three"
57 RenderTableRow {TR} at (0,31) size 102x549
58 RenderTableCell {TD} at (31,27) size 102x130 [border: (2px solid #008000)] [r=1 c=0 rs=1 cs=1]
59 RenderText {#text} at (33,-20) size 36x157
60 text run at (33,-20) width 116: "This table uses the"
61 text run at (51,-20) width 157: "collapsed borders model."
62 RenderTableCell {TD} at (31,202) size 102x137 [border: (1px solid #008000)] [r=1 c=1 rs=1 cs=1]
63 RenderText {#text} at (24,-12) size 54x158
64 text run at (24,-12) width 158: "This means that elements"
65 text run at (42,-12) width 143: "within the cell have no"
66 text run at (60,-12) width 98: "border-spacing."
67 RenderTableCell {TD} at (31,357) size 102x192 [border: (1px solid #008000)] [r=1 c=2 rs=1 cs=1]
68 RenderText {#text} at (6,6) size 90x168
69 text run at (6,6) width 135: "Since it has collapsed"
70 text run at (24,6) width 168: "borders, the borders on the"
71 text run at (42,6) width 82: "header cells, "
72 text run at (42,88) width 74: "on all sides,"
73 text run at (60,6) width 150: "should be medium solid"
74 text run at (78,6) width 44: "purple."
75 RenderTableRow {TR} at (0,133) size 102x549
76 RenderTableCell {TD} at (133,0) size 102x184 [border: (2px solid #008000)] [r=2 c=0 rs=1 cs=1]
77 RenderText {#text} at (5,7) size 90x153
78 text run at (5,7) width 144: "The border of the table"
79 text run at (23,7) width 150: "itself should be medium"
80 text run at (41,7) width 114: "solid blue, except "
81 text run at (41,121) width 39: "where"
82 text run at (59,7) width 153: "header cells override the"
83 text run at (77,7) width 45: "border."
84 RenderTableCell {TD} at (133,184) size 102x173 [border: (1px solid #008000)] [r=2 c=1 rs=1 cs=1]
85 RenderText {#text} at (5,6) size 90x161
86 text run at (5,6) width 161: "The borders that I haven't"
87 text run at (23,6) width 140: "already mentioned (all"
88 text run at (41,6) width 110: "the other internal "
89 text run at (41,116) width 34: "ones)"
90 text run at (59,6) width 123: "should be thin solid"
91 text run at (77,6) width 39: "green."
92 RenderTableCell {TD} at (133,357) size 102x192 [border: (1px solid #008000)] [r=2 c=2 rs=1 cs=1]
93 RenderText {#text} at (5,6) size 72x153
94 text run at (5,6) width 153: "This table should have a"
95 text run at (23,6) width 142: "1em margin around all"
96 text run at (41,6) width 44: "edges. "
97 text run at (41,50) width 80: "This margin "
98 text run at (41,130) width 10: "is"
99 text run at (59,6) width 121: "measured from the "
100 RenderInline {EM} at (0,0) size 18x43
101 RenderText {#text} at (59,127) size 18x43
102 text run at (59,127) width 43: "middle"
103 RenderText {#text} at (77,6) size 18x80
104 text run at (77,6) width 80: "of its border."
105 RenderTable {TABLE} at (270,16) size 290x552 [border: (3px solid #0000FF)]
106 RenderTableSection {TBODY} at (3,3) size 284x546
107 RenderTableRow {TR} at (0,16) size 34x546
108 RenderTableCell {TH} at (16,16) size 34x117 [border: (3px solid #800080)] [r=0 c=0 rs=1 cs=1]
109 RenderText {#text} at (8,17) size 18x83
110 text run at (8,17) width 82: "Header One"
111 RenderTableCell {TH} at (16,149) size 34x139 [border: (3px solid #800080)] [r=0 c=1 rs=1 cs=1]
112 RenderText {#text} at (8,27) size 18x85
113 text run at (8,27) width 85: "Header Two"
114 RenderTableCell {TH} at (16,304) size 34x226 [border: (3px solid #800080)] [r=0 c=2 rs=1 cs=1]
115 RenderText {#text} at (8,65) size 18x96
116 text run at (8,65) width 95: "Header Three"
117 RenderTableRow {TR} at (0,66) size 84x546
118 RenderTableCell {TD} at (66,25) size 84x99 [border: (1px solid #008000)] [r=1 c=0 rs=1 cs=1]
119 RenderText {#text} at (15,-3) size 54x94
120 text run at (15,-3) width 93: "This table uses"
121 text run at (33,-3) width 82: "the separated"
122 text run at (51,-3) width 94: "borders model."
123 RenderTableCell {TD} at (66,149) size 84x139 [border: (1px solid #008000)] [r=1 c=1 rs=1 cs=1]
124 RenderText {#text} at (6,6) size 72x122
125 text run at (6,6) width 99: "This means that"
126 text run at (24,6) width 122: "elements within the"
127 text run at (42,6) width 106: "cell have border-"
128 text run at (60,6) width 100: "spacing of 1em."
129 RenderTableCell {TD} at (66,313) size 84x208 [border: (1px solid #008000)] [r=1 c=2 rs=1 cs=1]
130 RenderText {#text} at (15,-3) size 54x201
131 text run at (15,-3) width 201: "The borders on the header cells,"
132 text run at (33,-3) width 194: "on all sides, should be medium"
133 text run at (51,-3) width 78: "solid purple."
134 RenderTableRow {TR} at (0,166) size 102x546
135 RenderTableCell {TD} at (166,16) size 102x117 [border: (1px solid #008000)] [r=2 c=0 rs=1 cs=1]
136 RenderText {#text} at (6,6) size 90x87
137 text run at (6,6) width 87: "The border of"
138 text run at (24,6) width 87: "the table itself"
139 text run at (42,6) width 61: "should be"
140 text run at (60,6) width 85: "medium solid"
141 text run at (78,6) width 31: "blue."
142 RenderTableCell {TD} at (166,167) size 102x103 [border: (1px solid #008000)] [r=2 c=1 rs=1 cs=1]
143 RenderText {#text} at (24,-12) size 54x120
144 text run at (24,-12) width 93: "The borders of"
145 text run at (42,-12) width 110: "other cells should"
146 text run at (60,-12) width 120: "be thin solid green."
147 RenderTableCell {TD} at (166,313) size 102x208 [border: (1px solid #008000)] [r=2 c=2 rs=1 cs=1]
148 RenderText {#text} at (15,-3) size 54x187
149 text run at (15,-3) width 184: "This table should have a 1em"
150 text run at (33,-3) width 159: "margin around all edges. "
151 text run at (33,156) width 28: "This"
152 text run at (51,-3) width 48: "margin "
153 text run at (51,45) width 131: "is measured from the"
154 RenderInline {EM} at (0,0) size 18x67
155 RenderText {#text} at (69,-3) size 18x67
156 text run at (69,-3) width 67: "outer edge"
157 RenderText {#text} at (69,64) size 18x84
158 text run at (69,64) width 84: " of its border."
159 RenderTable {TABLE} at (576,16) size 312x552 [border: (3px solid #0000FF)]
160 RenderTableSection {TBODY} at (3,3) size 306x546
161 RenderTableRow {TR} at (0,8) size 34x546
162 RenderTableCell {TH} at (8,0) size 34x141 [border: (3px solid #800080)] [r=0 c=0 rs=1 cs=1]
163 RenderText {#text} at (8,29) size 18x83
164 text run at (8,29) width 82: "Header One"
165 RenderTableCell {TH} at (8,141) size 34x199 [border: (3px solid #800080)] [r=0 c=1 rs=1 cs=1]
166 RenderText {#text} at (8,57) size 18x85
167 text run at (8,57) width 85: "Header Two"
168 RenderTableCell {TH} at (8,340) size 34x206 [border: (3px solid #800080)] [r=0 c=2 rs=1 cs=1]
169 RenderText {#text} at (8,55) size 18x96
170 text run at (8,55) width 95: "Header Three"
171 RenderTableRow {TR} at (0,50) size 120x546
172 RenderTableCell {TD} at (50,27) size 120x87 [border: (1px solid #008000)] [r=1 c=0 rs=1 cs=1]
173 RenderText {#text} at (33,-21) size 54x116
174 text run at (33,-21) width 116: "This table uses the"
175 text run at (51,-21) width 110: "separated borders"
176 text run at (69,-21) width 43: "model."
177 RenderTableCell {TD} at (50,141) size 120x199 [border: (1px solid #008000)] [r=1 c=1 rs=1 cs=1]
178 RenderText {#text} at (6,6) size 108x185
179 text run at (6,6) width 185: "Elements within the cell have"
180 text run at (24,6) width 161: "horizontal border-spacing"
181 text run at (42,6) width 89: "(i.e., width of "
182 text run at (42,95) width 84: "vertical lines)"
183 text run at (60,6) width 106: "of 0 and vertical "
184 text run at (60,112) width 46: "border-"
185 text run at (78,6) width 140: "spacing (i.e., height of"
186 text run at (96,6) width 165: "horizontal lines) of 0.5em."
187 RenderTableCell {TD} at (50,367) size 120x152 [border: (1px solid #008000)] [r=1 c=2 rs=1 cs=1]
188 RenderText {#text} at (33,-21) size 54x175
189 text run at (33,-21) width 165: "The borders on the header"
190 text run at (51,-21) width 36: "cells, "
191 text run at (51,15) width 139: "on all sides, should be"
192 text run at (69,-21) width 133: "medium solid purple."
193 RenderTableRow {TR} at (0,178) size 120x546
194 RenderTableCell {TD} at (178,0) size 120x141 [border: (1px solid #008000)] [r=2 c=0 rs=1 cs=1]
195 RenderText {#text} at (6,6) size 108x129
196 text run at (6,6) width 110: "The border of the"
197 text run at (24,6) width 129: "table itself should be"
198 text run at (42,6) width 120: "medium solid blue."
199 text run at (60,6) width 129: "The borders of other"
200 text run at (78,6) width 121: "cells should be thin"
201 text run at (96,6) width 73: "solid green."
202 RenderTableCell {TD} at (178,159) size 120x163 [border: (1px solid #008000)] [r=2 c=1 rs=1 cs=1]
203 RenderText {#text} at (24,-12) size 54x187
204 text run at (24,-12) width 184: "This table should have a 1em"
205 text run at (42,-12) width 159: "margin around all edges. "
206 text run at (42,147) width 28: "This"
207 text run at (60,-12) width 48: "margin "
208 text run at (60,36) width 131: "is measured from the"
209 RenderInline {EM} at (0,0) size 18x67
210 RenderText {#text} at (78,-12) size 18x67
211 text run at (78,-12) width 67: "outer edge"
212 RenderText {#text} at (78,55) size 18x84
213 text run at (78,55) width 84: " of its border."
214 RenderTableCell {TD} at (178,340) size 120x206 [border: (1px solid #008000)] [r=2 c=2 rs=1 cs=1]
215 RenderText {#text} at (6,6) size 108x192
216 text run at (6,6) width 188: "The table should not be wider"
217 text run at (24,6) width 181: "than the room available for it"
218 text run at (42,6) width 43: "unless "
219 text run at (42,49) width 149: "that space is very small."
220 text run at (60,6) width 169: "Because of its margins, the"
221 text run at (78,6) width 80: "width of the "
222 text run at (78,86) width 95: "table should be"
223 text run at (96,6) width 99: "less than 100%."
224 RenderTable {TABLE} at (904,16) size 280x552 [border: (3px solid #0000FF)]
225 RenderTableSection {TBODY} at (3,3) size 274x546
226 RenderTableRow {TR} at (0,0) size 34x546
227 RenderTableCell {TH} at (0,8) size 34x148 [border: (3px solid #800080)] [r=0 c=0 rs=1 cs=1]
228 RenderText {#text} at (8,33) size 18x82
229 text run at (8,33) width 82: "Header One"
230 RenderTableCell {TH} at (0,164) size 34x150 [border: (3px solid #800080)] [r=0 c=1 rs=1 cs=1]
231 RenderText {#text} at (8,32) size 18x86
232 text run at (8,32) width 85: "Header Two"
233 RenderTableCell {TH} at (0,322) size 34x216 [border: (3px solid #800080)] [r=0 c=2 rs=1 cs=1]
234 RenderText {#text} at (8,60) size 18x96
235 text run at (8,60) width 95: "Header Three"
236 RenderTableRow {TR} at (0,34) size 102x546
237 RenderTableCell {TD} at (34,26) size 102x112 [border: (1px solid #008000)] [r=1 c=0 rs=1 cs=1]
238 RenderText {#text} at (24,-12) size 54x116
239 text run at (24,-12) width 116: "This table uses the"
240 text run at (42,-12) width 110: "separated borders"
241 text run at (60,-12) width 43: "model."
242 RenderTableCell {TD} at (34,164) size 102x150 [border: (1px solid #008000)] [r=1 c=1 rs=1 cs=1]
243 RenderText {#text} at (6,6) size 90x127
244 text run at (6,6) width 125: "Elements within the"
245 text run at (24,6) width 123: "cell have horizontal"
246 text run at (42,6) width 111: "border-spacing of"
247 text run at (60,6) width 116: "0.5em and vertical"
248 text run at (78,6) width 127: "border-spacing of 0."
249 RenderTableCell {TD} at (34,340) size 102x180 [border: (1px solid #008000)] [r=1 c=2 rs=1 cs=1]
250 RenderText {#text} at (24,-12) size 54x201
251 text run at (24,-12) width 201: "The borders on the header cells,"
252 text run at (42,-12) width 194: "on all sides, should be medium"
253 text run at (60,-12) width 78: "solid purple."
254 RenderTableRow {TR} at (0,136) size 138x546
255 RenderTableCell {TD} at (136,17) size 138x130 [border: (1px solid #008000)] [r=2 c=0 rs=1 cs=1]
256 RenderText {#text} at (15,-3) size 108x129
257 text run at (15,-3) width 110: "The border of the"
258 text run at (33,-3) width 129: "table itself should be"
259 text run at (51,-3) width 120: "medium solid blue."
260 text run at (69,-3) width 129: "The borders of other"
261 text run at (87,-3) width 121: "cells should be thin"
262 text run at (105,-3) width 73: "solid green."
263 RenderTableCell {TD} at (136,164) size 138x150 [border: (1px solid #008000)] [r=2 c=1 rs=1 cs=1]
264 RenderText {#text} at (6,6) size 90x120
265 text run at (6,6) width 108: "This table should"
266 text run at (24,6) width 120: "have a 1em margin"
267 text run at (42,6) width 107: "around all edges."
268 text run at (60,6) width 80: "This margin "
269 text run at (60,86) width 10: "is"
270 text run at (78,6) width 117: "measured from the"
271 RenderInline {EM} at (0,0) size 18x67
272 RenderText {#text} at (96,6) size 18x67
273 text run at (96,6) width 67: "outer edge"
274 RenderText {#text} at (96,73) size 36x102
275 text run at (96,73) width 35: " of its"
276 text run at (114,6) width 45: "border."
277 RenderTableCell {TD} at (136,331) size 138x198 [border: (1px solid #008000)] [r=2 c=2 rs=1 cs=1]
278 RenderText {#text} at (15,-3) size 108x202
279 text run at (15,-3) width 188: "The table should not be wider"
280 text run at (33,-3) width 181: "than the room available for it"
281 text run at (51,-3) width 43: "unless "
282 text run at (51,40) width 149: "that space is very small."
283 text run at (69,-3) width 169: "Because of its margins, the"
284 text run at (87,-3) width 80: "width of the "
285 text run at (87,77) width 122: "table should be less"
286 text run at (105,-3) width 72: "than 100%."
287 RenderTable {TABLE} at (1200,16) size 272x552
288 RenderBlock {CAPTION} at (0,0) size 18x552
289 RenderText {#text} at (0,216) size 18x120
290 text run at (0,216) width 119: "This is the caption."
291 RenderTableCol {COLGROUP} at (0,0) size 0x0 [border: (3px solid #FF0000)]
292 RenderTableCol {COL} at (0,0) size 0x0 [border: (3px solid #FF0000)]
293 RenderTableCol {COLGROUP} at (0,0) size 0x0 [border: (3px solid #FF0000)]
294 RenderTableCol {COL} at (0,0) size 0x0 [border: (3px solid #FF0000)]
295 RenderTableCol {COL} at (0,0) size 0x0 [border: (3px solid #FF0000)]
296 RenderTableSection {THEAD} at (18,0) size 50x552 [border: (3px solid #FF0000)]
297 RenderTableRow {TR} at (0,2) size 46x552 [border: (3px solid #FF0000)]
298 RenderTableCell {TH} at (2,2) size 46x89 [r=0 c=0 rs=1 cs=1]
299 RenderText {#text} at (5,19) size 36x51
300 text run at (5,19) width 50: "Header"
301 text run at (23,30) width 28: "One"
302 RenderTableCell {TH} at (2,102) size 46x221 [r=0 c=1 rs=1 cs=1]
303 RenderText {#text} at (14,68) size 18x85
304 text run at (14,68) width 85: "Header Two"
305 RenderTableCell {TH} at (2,343) size 46x198 [r=0 c=2 rs=1 cs=1]
306 RenderText {#text} at (14,51) size 18x96
307 text run at (14,51) width 95: "Header Three"
308 RenderTableSection {TBODY} at (68,0) size 204x552 [border: (3px solid #FF0000)]
309 RenderTableRow {TR} at (0,0) size 100x552 [border: (3px solid #FF0000)]
310 RenderTableCell {TD} at (0,2) size 100x89 [r=0 c=0 rs=1 cs=1]
311 RenderText {#text} at (5,5) size 90x62
312 text run at (5,5) width 62: "This table"
313 text run at (23,5) width 50: "uses the"
314 text run at (41,5) width 59: "separated"
315 text run at (59,5) width 47: "borders"
316 text run at (77,5) width 43: "model."
317 RenderTableCell {TD} at (0,111) size 100x203 [r=0 c=1 rs=1 cs=1]
318 RenderText {#text} at (23,-13) size 54x227
319 text run at (23,-13) width 227: "This means that borders are allowed"
320 text run at (41,-13) width 196: "only on table elements or table "
321 text run at (41,183) width 22: "cell"
322 text run at (59,-13) width 59: "elements."
323 RenderTableCell {TD} at (0,343) size 100x198 [r=0 c=2 rs=1 cs=1]
324 RenderText {#text} at (14,-4) size 72x182
325 text run at (14,-4) width 154: "They are not allowed on"
326 text run at (32,-4) width 182: "elements that represent rows,"
327 text run at (50,-4) width 155: "row-groups, columns, or"
328 text run at (68,-4) width 99: "column-groups."
329 RenderTableRow {TR} at (0,102) size 100x552 [border: (3px solid #FF0000)]
330 RenderTableCell {TD} at (102,2) size 100x89 [r=1 c=0 rs=1 cs=1]
331 RenderText {#text} at (5,5) size 90x76
332 text run at (5,5) width 37: "There"
333 text run at (23,5) width 61: "should be"
334 text run at (41,5) width 67: "no borders"
335 text run at (59,5) width 76: "at all on this"
336 text run at (77,5) width 35: "table!"
337 RenderTableCell {TD} at (102,102) size 100x221 [r=1 c=1 rs=1 cs=1]
338 RenderText {#text} at (14,-4) size 72x219
339 text run at (14,-4) width 219: "If there are any borders shown that"
340 text run at (32,-4) width 195: "are not medium solid red, then "
341 text run at (32,191) width 19: "the"
342 text run at (50,-4) width 202: "problem is something other than"
343 text run at (68,-4) width 145: "what this test is testing."
344 RenderTableCell {TD} at (102,343) size 100x198 [r=1 c=2 rs=1 cs=1]
345 RenderText {#text} at (14,-4) size 54x187
346 text run at (14,-4) width 184: "This table should have a 1em"
347 text run at (32,-4) width 159: "margin around all edges. "
348 text run at (32,155) width 28: "This"
349 text run at (50,-4) width 48: "margin "
350 text run at (50,44) width 131: "is measured from the"
351 RenderInline {EM} at (0,0) size 18x67
352 RenderText {#text} at (68,-4) size 18x67
353 text run at (68,-4) width 67: "outer edge"
354 RenderText {#text} at (68,63) size 18x84
355 text run at (68,63) width 84: " of its border."