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=78724">78724</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 - One rowSpan cell
</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">
41 <h5>Test
2 - One rowSpan cell and specified table width
</h5>
42 <table border=
"1" width=
"607">
44 <tr data-expected-height=
"19">
45 <td rowspan=
"5">row0 col0 - rowspan=
5</td>
48 <tr data-expected-height=
"19">
51 <tr data-expected-height=
"19">
54 <tr data-expected-height=
"19">
57 <tr data-expected-height=
"19">
62 <h5>Test
3 - One rowSpan cell and specified rowSpan cell height
</h5>
68 <tr data-expected-height=
"57">
70 <td rowspan=
"4" style=
"height:300px">row1 col1 - rowspan=
4</td>
72 <tr data-expected-height=
"57">
75 <tr data-expected-height=
"74">
78 <tr data-expected-height=
"75">
81 <tr data-expected-height=
"19">
87 <h5>Test
4 - One rowSpan cell and specified cells height
</h5>
93 <tr data-expected-height=
"59">
95 <td rowspan=
"4" style=
"height:300px">row1 col1 - rowspan=
4</td>
97 <tr data-expected-height=
"74">
98 <td style=
"height:70px">row2 col0
</td>
100 <tr data-expected-height=
"34">
101 <td style=
"height:30px">row3 col0
</td>
103 <tr data-expected-height=
"104">
104 <td style=
"height:100px">row4 col0
</td>
106 <tr data-expected-height=
"54">
107 <td style=
"height:50px">row5 col0
</td>
112 <h5>Test
5 - RowSpan and ColSpan.
</h5>
113 <table border=
"1" width=
"607">
115 <tr data-expected-height=
"34">
117 <td rowspan=
"3" colspan=
"2">row0 col1 - rowspan=
3 colspan=
2</td>
120 <tr data-expected-height=
"34">
123 <tr data-expected-height=
"34">
126 <tr data-expected-height=
"19">
127 <td colspan=
"3">row3 col0 - colspan=
3</td>
129 <tr data-expected-height=
"34">
134 <h5>Test
6 - Mix of baseline aligned and non-baseline aligned cells.
</h5>
135 <table border=
"1" width=
"607">
137 <tr data-expected-height=
"104">
138 <td style=
"height:100px">row0 col0
</td>
139 <td style=
"vertical-align:top">row0 col1 vertical-align=top
</td>
140 <td style=
"vertical-align:bottom">row0 col2 vertical-align=bottom
</td>
142 <tr data-expected-height=
"19">
145 <tr data-expected-height=
"77">
146 <td rowspan=
"4" style=
"vertical-align:text-top; height:300px">row2 col0 - rowspan=
4 vertical-align=text-top
</td>
147 <td style=
"vertical-align:sub">row2 col1 vertical-align=sub
</td>
149 <tr data-expected-height=
"77">
150 <td style=
"vertical-align:middle">row3 col1 vertical-align=middle
</td>
152 <tr data-expected-height=
"69">
153 <td style=
"vertical-align:super">row4 col1 vertical-align=super
</td>
155 <tr data-expected-height=
"91">
156 <td style=
"vertical-align:text-bottom">row5 col1 vertical-align=text-bottom
</td>
158 <tr data-expected-height=
"19">
163 <h5>Test
7 - CSS Table.
</h5>
166 <span id=
"span-cell">row0 col0
</span>
167 <div id=
"div-cell">row0 col1
</div>
168 <span id=
"span-cell">row0 col2
</span>
171 <div id=
"div-cell">row1 col0
</div>
172 <span id=
"span-cell">row1 col1
</span>
173 <div id=
"div-cell">row1 col2
</div>
176 <span id=
"span-cell">row2 col0
</span>
179 <div id=
"div-cell">row3 col0
</div>
182 <span id=
"span-cell">row4 col0
</span>
183 <span id=
"span-cell">row4 col1
</span>
184 <span id=
"span-cell">row4 col2
</span>
187 <span id=
"span-cell">row5 col0
</span>
188 <div id=
"div-cell">row5 col1
</div>
189 <span id=
"span-cell">row5 col2
</span>
192 <div id=
"div-cell">row6 col0
</div>
193 <span id=
"span-cell">row6 col1
</span>
196 <div id=
"div-cell">row7 col0
</div>
199 <span id=
"span-cell">row8 col0
</span>
202 <div id=
"div-cell">row9 col0
</div>
205 <div id=
"div-cell">row10 col0
</div>
208 <h5>Test
8 - Table Similar to CSS table with rowspan.
</h5>
210 <tr data-expected-height=
"21">
211 <td rowspan=
5 style=
"height:300px">row0 col0
</td>
215 <tr data-expected-height=
"87">
216 <td rowspan=
3 style=
"height:200px">row1 col1
</td>
217 <td rowspan=
2 style=
"height:100px">row1 col2
</td>
220 <tr data-expected-height=
"96">
223 <tr data-expected-height=
"40">
226 <tr data-expected-height=
"24">
231 <tr data-expected-height=
"19">
236 <tr data-expected-height=
"0">
237 <td rowspan=
5 style=
"height:200px">row6 col0
</td>
238 <td rowspan=
5 style=
"height:100px">row6 col1
</td>
240 <tr data-expected-height=
"37">
243 <tr data-expected-height=
"38">
246 <tr data-expected-height=
"49">
249 <tr data-expected-height=
"49">