table-visual-layout-016

A cell box cannot extend beyond the last row of a row group

WeasyPrint

This browser

Assertion
A cell box cannot extend beyond the last row box of a row group.

Source

 1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
 2 <html>
 3     <head>
 4         <title>CSS Test: A cell box cannot extend beyond the last row of a row group</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#table-layout">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="A cell box cannot extend beyond the last row box of a row group.">
 9         <style type="text/css">
10             td
11             {
12                 border: 1px solid black;
13                 height: 2em;
14                 width: 2em;
15             }
16             #cell
17             {
18                 background: blue;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if only the square in the middle of the column below is blue.</p>
24         <table>
25             <tbody>
26                 <tr>
27                     <td></td>
28                 </tr>
29                 <tr>
30                     <td id="cell" rowspan="2"></td>
31                 </tr>
32             </tbody>
33             <tbody>
34                 <tr>
35                     <td></td>
36                 </tr>
37             </tbody>
38         </table>
39     </body>
40 </html>