4 <title>Table rowspan
</title>
5 <script src=
"../../resources/check-layout.js"></script>
7 td { font:
15px/
1 Ahem }
8 #div-table { display: table; border-spacing:
2px }
9 #div-row, #span-row { display: table-row }
10 #div-cell, #span-cell { display: table-cell }
11 #div-table, #div-row, #span-row, #div-cell, #span-cell{ border:
1px solid black }
14 <body onload=
"checkLayout('tr')">
15 <h3>Test for chromium bug :
<a href=
"https://code.google.com/p/chromium/issues/detail?id=249600">249600</a>. Extra logical height is not properly spread over the rows in a row-spanning cell.
</h3>
16 <h4>Rows in rowspan should get proportional height.
</h4>
17 <h5>Test
1 - Three rowSpan cells
</h5>
23 <tr data-expected-height=
"19">
24 <td rowspan=
"4">row1 col0 - rowspan=
4</td>
27 <tr data-expected-height=
"19">
30 <tr data-expected-height=
"19">
33 <tr data-expected-height=
"19">
36 <tr data-expected-height=
"19">
42 <tr data-expected-height=
"57">
44 <td rowspan=
"4" style=
"height:300px">row7 col1 - rowspan=
4</td>
46 <tr data-expected-height=
"57">
49 <tr data-expected-height=
"74">
52 <tr data-expected-height=
"75">
55 <tr data-expected-height=
"19">
62 <tr data-expected-height=
"59">
64 <td rowspan=
"4" style=
"height:300px">row13 col1 - rowspan=
4</td>
66 <tr data-expected-height=
"74">
67 <td style=
"height:70px">row14 col0
</td>
69 <tr data-expected-height=
"34">
70 <td style=
"height:30px">row15 col0
</td>
72 <tr data-expected-height=
"104">
73 <td style=
"height:100px">row16 col0
</td>
75 <tr data-expected-height=
"54">
76 <td style=
"height:50px">row17 col0
</td>
81 <h5>Test
2 - Three rowSpan cell and specified table width
</h5>
82 <table border=
"1" width=
"607">
84 <tr data-expected-height=
"19">
85 <td rowspan=
"5">row0 col0 - rowspan=
5</td>
88 <tr data-expected-height=
"19">
91 <tr data-expected-height=
"19">
94 <tr data-expected-height=
"19">
97 <tr data-expected-height=
"19">
103 <tr data-expected-height=
"57">
105 <td rowspan=
"4" style=
"height:300px">row6 col1 - rowspan=
4</td>
107 <tr data-expected-height=
"57">
110 <tr data-expected-height=
"74">
113 <tr data-expected-height=
"75">
116 <tr data-expected-height=
"19">
123 <tr data-expected-height=
"59">
125 <td rowspan=
"4" style=
"height:300px">row12 col1 - rowspan=
4</td>
127 <tr data-expected-height=
"74">
128 <td style=
"height:70px">row13 col0
</td>
130 <tr data-expected-height=
"34">
131 <td style=
"height:30px">row14 col0
</td>
133 <tr data-expected-height=
"104">
134 <td style=
"height:100px">row15 col0
</td>
136 <tr data-expected-height=
"54">
137 <td style=
"height:50px">row16 col0
</td>
142 <h5>Test
3 - Continuous
3 rowSpan cells
</h5>
148 <tr data-expected-height=
"19">
149 <td rowspan=
"4">row1 col0 - rowspan=
4</td>
152 <tr data-expected-height=
"19">
155 <tr data-expected-height=
"19">
158 <tr data-expected-height=
"19">
161 <tr data-expected-height=
"57">
163 <td rowspan=
"4" style=
"height:300px">row5 col1 - rowspan=
4</td>
165 <tr data-expected-height=
"57">
168 <tr data-expected-height=
"74">
171 <tr data-expected-height=
"75">
174 <tr data-expected-height=
"59">
176 <td rowspan=
"4" style=
"height:300px">row9 col1 - rowspan=
4</td>
178 <tr data-expected-height=
"74">
179 <td style=
"height:70px">row10 col0
</td>
181 <tr data-expected-height=
"34">
182 <td style=
"height:30px">row11 col0
</td>
184 <tr data-expected-height=
"104">
185 <td style=
"height:100px">row12 col0
</td>
187 <tr data-expected-height=
"54">
188 <td style=
"height:50px">row13 col0
</td>
193 <h5>Test
4 - Two rowSpan cells,
2 rows in first spanning cell have percent height and
2 rows in second spanning cell have fixed height
</h5>
199 <tr data-expected-height=
"21">
200 <td rowspan=
"4" style=
"height:300px">row1 col0 - rowspan=
4</td>
203 <tr data-expected-height=
"199" style=
"height:20%">
206 <tr data-expected-height=
"19">
209 <tr data-expected-height=
"74" style=
"height:30%">
212 <tr data-expected-height=
"19">
218 <tr data-expected-height=
"58">
220 <td rowspan=
"4" style=
"height:300px">row7 col1 - rowspan=
4</td>
222 <tr data-expected-height=
"50" style=
"height:50px">
225 <tr data-expected-height=
"89">
228 <tr data-expected-height=
"70" style=
"height:70px">
231 <tr data-expected-height=
"19">
241 <h5>Test
5 - Two rowSpan cells, in first spanning cell,
2 rows have percent height and
2 rows have fixed height and in second spanning cell,
1 row have fixed height,
1 row have percent height and remaining are auto.
</h5>
247 <tr data-expected-height=
"64">
248 <td rowspan=
"4" style=
"height:300px">row1 col0 - rowspan=
4</td>
249 <td style=
"height:60px">row1 col1
</td>
251 <tr data-expected-height=
"152" style=
"height:20%">
254 <tr data-expected-height=
"40" style=
"height:40px">
257 <tr data-expected-height=
"19" style=
"height:30%">
260 <tr data-expected-height=
"19">
266 <tr data-expected-height=
"19">
268 <td rowspan=
"4" style=
"height:300px">row7 col1 - rowspan=
4</td>
270 <tr data-expected-height=
"218" style=
"height:30%">
273 <tr data-expected-height=
"20">
276 <tr data-expected-height=
"50" style=
"height:50px">
279 <tr data-expected-height=
"19">
288 <h5>Test
6 - RowSpan and ColSpan.
</h5>
289 <table border=
"1" width=
"607">
291 <tr data-expected-height=
"34">
293 <td rowspan=
"3" colspan=
"2">row0 col1 - rowspan=
3 colspan=
2</td>
296 <tr data-expected-height=
"34">
299 <tr data-expected-height=
"34">
302 <tr data-expected-height=
"19">
303 <td colspan=
"3">row3 col0 - colspan=
3</td>
305 <tr data-expected-height=
"34">
310 <h5>Test
7 - Mix of baseline aligned and non-baseline aligned cells.
</h5>
311 <table border=
"1" width=
"607">
313 <tr data-expected-height=
"104">
314 <td style=
"height:100px">row0 col0
</td>
315 <td style=
"vertical-align:top">row0 col1 vertical-align=top
</td>
316 <td style=
"vertical-align:bottom">row0 col2 vertical-align=bottom
</td>
318 <tr data-expected-height=
"19">
321 <tr data-expected-height=
"77">
322 <td rowspan=
"4" style=
"vertical-align:text-top; height:300px">row2 col0 - rowspan=
4 vertical-align=text-top
</td>
323 <td style=
"vertical-align:sub">row2 col1 vertical-align=sub
</td>
325 <tr data-expected-height=
"77">
326 <td style=
"vertical-align:middle">row3 col1 vertical-align=middle
</td>
328 <tr data-expected-height=
"69">
329 <td style=
"vertical-align:super">row4 col1 vertical-align=super
</td>
331 <tr data-expected-height=
"91">
332 <td style=
"vertical-align:text-bottom">row5 col1 vertical-align=text-bottom
</td>
334 <tr data-expected-height=
"19">
339 <h5>Test
8 - CSS Table.
</h5>
342 <span id=
"span-cell">row0 col0
</span>
343 <div id=
"div-cell">row0 col1
</div>
344 <span id=
"span-cell">row0 col2
</span>
347 <div id=
"div-cell">row1 col0
</div>
348 <span id=
"span-cell">row1 col1
</span>
349 <div id=
"div-cell">row1 col2
</div>
352 <span id=
"span-cell">row2 col0
</span>
355 <div id=
"div-cell">row3 col0
</div>
358 <span id=
"span-cell">row4 col0
</span>
359 <span id=
"span-cell">row4 col1
</span>
360 <span id=
"span-cell">row4 col2
</span>
363 <span id=
"span-cell">row5 col0
</span>
364 <div id=
"div-cell">row5 col1
</div>
365 <span id=
"span-cell">row5 col2
</span>
368 <div id=
"div-cell">row6 col0
</div>
369 <span id=
"span-cell">row6 col1
</span>
372 <div id=
"div-cell">row7 col0
</div>
375 <span id=
"span-cell">row8 col0
</span>
378 <div id=
"div-cell">row9 col0
</div>
381 <div id=
"div-cell">row10 col0
</div>
384 <h5>Test
9 - Table Similar to CSS table with rowspan.
</h5>
386 <tr data-expected-height=
"21">
387 <td rowspan=
5 style=
"height:300px">row0 col0
</td>
391 <tr data-expected-height=
"87">
392 <td rowspan=
3 style=
"height:200px">row1 col1
</td>
393 <td rowspan=
2 style=
"height:100px">row1 col2
</td>
396 <tr data-expected-height=
"96">
399 <tr data-expected-height=
"40">
402 <tr data-expected-height=
"24">
407 <tr data-expected-height=
"19">
412 <tr data-expected-height=
"0">
413 <td rowspan=
5 style=
"height:200px">row6 col0
</td>
414 <td rowspan=
5 style=
"height:100px">row6 col1
</td>
416 <tr data-expected-height=
"37">
419 <tr data-expected-height=
"38">
422 <tr data-expected-height=
"49">
425 <tr data-expected-height=
"49">