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=252120">252120</a>. Content of the row spanning cell is flowing out of the cell boundries.
</h3>
16 <h4>Row spanning cell height is not set as per its content height or given height to this cells.
</h4>
17 <h5>Test
1 - One row spanning cell present under the boundries of other row spanning cell and inner row spanning cell have lots of content.
</h5>
20 <tr data-expected-height=
"19">
21 <td rowspan=
"6" style=
"height:400px">row0 col0 rowspan=
6 height=
400px
</td>
24 <tr data-expected-height=
"19">
27 <tr data-expected-height=
"0">
28 <td rowspan=
"3" style=
"height:200px">row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/>row2 col1 rowspan=
3 height=
200px
<br/></td>
30 <tr data-expected-height=
"165">
33 <tr data-expected-height=
"168">
36 <tr data-expected-height=
"20">
39 <tr data-expected-height=
"19">
44 <h5>Test
2 - One row spanning cell present under the boundries of other row spanning cell and inner row spanning cell have its own height.
</h5>
45 <table border=
"1" width=
"607">
47 <tr data-expected-height=
"23">
48 <td rowspan=
"6" style=
"height:600px">row0 col0 rowspan=
6 height=
600px
</td>
51 <tr data-expected-height=
"24">
54 <tr data-expected-height=
"0">
55 <td rowspan=
"3" style=
"height:400px">row2 col1 rowspan=
3 height=
400px
</td>
57 <tr data-expected-height=
"247">
60 <tr data-expected-height=
"260">
63 <tr data-expected-height=
"25">
66 <tr data-expected-height=
"19">
71 <h5>Test
3 -
2 same row spanning cells with diffrent heights.
</h5>
74 <tr data-expected-height=
"0">
75 <td rowspan=
"6" style=
"height:300px">row0 col0 rowspan=
6 height=
300px
</td>
76 <td rowspan=
"6" style=
"height:500px">row0 col1 rowspan=
6 height=
500px
</td>
78 <tr data-expected-height=
"90">
81 <tr data-expected-height=
"94">
84 <tr data-expected-height=
"95">
87 <tr data-expected-height=
"99">
90 <tr data-expected-height=
"99">
93 <tr data-expected-height=
"19">
98 <h5>Test
4 - some rows are common between
2 row spanning cells.
</h5>
101 <tr data-expected-height=
"43">
102 <td rowspan=
"6" style=
"height:400px">row0 col0 rowspan=
6 height=
400px
</td>
105 <tr data-expected-height=
"0">
106 <td rowspan=
"6" style=
"height:800px">row1 col1 rowspan=
6 height=
800px
</td>
108 <tr data-expected-height=
"168">
111 <tr data-expected-height=
"177">
114 <tr data-expected-height=
"176">
117 <tr data-expected-height=
"189">
120 <tr data-expected-height=
"42">
123 <tr data-expected-height=
"19">
128 <h5>Test
5 -
2 spanning cells starts at diffrent row index but end at same row index.
</h5>
131 <tr data-expected-height=
"35">
132 <td rowspan=
"6" style=
"height:600px">row0 col0 rowspan=
6 height=
400px
</td>
135 <tr data-expected-height=
"0">
136 <td rowspan=
"5" style=
"height:300px">row1 col1 rowspan=
6 height=
800px
</td>
138 <tr data-expected-height=
"130">
141 <tr data-expected-height=
"132">
144 <tr data-expected-height=
"140">
147 <tr data-expected-height=
"140">
150 <tr data-expected-height=
"19">
153 <tr data-expected-height=
"19">
158 <h5>Test
6 - RowSpan and ColSpan.
</h5>
159 <table border=
"1" width=
"607">
161 <tr data-expected-height=
"34">
163 <td rowspan=
"3" colspan=
"2">row0 col1 - rowspan=
3 colspan=
2</td>
166 <tr data-expected-height=
"34">
169 <tr data-expected-height=
"34">
172 <tr data-expected-height=
"19">
173 <td colspan=
"3">row3 col0 - colspan=
3</td>
175 <tr data-expected-height=
"34">
180 <h5>Test
7 - Mix of baseline aligned and non-baseline aligned cells.
</h5>
181 <table border=
"1" width=
"607">
183 <tr data-expected-height=
"104">
184 <td style=
"height:100px">row0 col0
</td>
185 <td style=
"vertical-align:top">row0 col1 vertical-align=top
</td>
186 <td style=
"vertical-align:bottom">row0 col2 vertical-align=bottom
</td>
188 <tr data-expected-height=
"19">
191 <tr data-expected-height=
"77">
192 <td rowspan=
"4" style=
"vertical-align:text-top; height:300px">row2 col0 - rowspan=
4 vertical-align=text-top
</td>
193 <td style=
"vertical-align:sub">row2 col1 vertical-align=sub
</td>
195 <tr data-expected-height=
"77">
196 <td style=
"vertical-align:middle">row3 col1 vertical-align=middle
</td>
198 <tr data-expected-height=
"69">
199 <td style=
"vertical-align:super">row4 col1 vertical-align=super
</td>
201 <tr data-expected-height=
"91">
202 <td style=
"vertical-align:text-bottom">row5 col1 vertical-align=text-bottom
</td>
204 <tr data-expected-height=
"19">
209 <h5>Test
8 - CSS Table.
</h5>
212 <span id=
"span-cell">row0 col0
</span>
213 <div id=
"div-cell">row0 col1
</div>
214 <span id=
"span-cell">row0 col2
</span>
217 <div id=
"div-cell">row1 col0
</div>
218 <span id=
"span-cell">row1 col1
</span>
219 <div id=
"div-cell">row1 col2
</div>
222 <span id=
"span-cell">row2 col0
</span>
225 <div id=
"div-cell">row3 col0
</div>
228 <span id=
"span-cell">row4 col0
</span>
229 <span id=
"span-cell">row4 col1
</span>
230 <span id=
"span-cell">row4 col2
</span>
233 <span id=
"span-cell">row5 col0
</span>
234 <div id=
"div-cell">row5 col1
</div>
235 <span id=
"span-cell">row5 col2
</span>
238 <div id=
"div-cell">row6 col0
</div>
239 <span id=
"span-cell">row6 col1
</span>
242 <div id=
"div-cell">row7 col0
</div>
245 <span id=
"span-cell">row8 col0
</span>
248 <div id=
"div-cell">row9 col0
</div>
251 <div id=
"div-cell">row10 col0
</div>
254 <h5>Test
9 - Table Similar to CSS table with rowspan.
</h5>
256 <tr data-expected-height=
"21">
257 <td rowspan=
5 style=
"height:300px">row0 col0
</td>
261 <tr data-expected-height=
"87">
262 <td rowspan=
3 style=
"height:200px">row1 col1
</td>
263 <td rowspan=
2 style=
"height:100px">row1 col2
</td>
266 <tr data-expected-height=
"96">
269 <tr data-expected-height=
"40">
272 <tr data-expected-height=
"24">
277 <tr data-expected-height=
"19">
282 <tr data-expected-height=
"0">
283 <td rowspan=
5 style=
"height:200px">row6 col0
</td>
284 <td rowspan=
5 style=
"height:100px">row6 col1
</td>
286 <tr data-expected-height=
"37">
289 <tr data-expected-height=
"38">
292 <tr data-expected-height=
"49">
295 <tr data-expected-height=
"49">