table-visual-layout-012

Top row of a spanning cell is the row of its parent element

WeasyPrint

This browser

Assertion
The top row of a spanning cell's rectangle is in the row specified by the cell's parent.

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: Top row of a spanning cell is the row of its parent element</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="The top row of a spanning cell's rectangle is in the row specified by the cell's parent.">
 9         <style type="text/css">
10             td
11             {
12                 background: orange;
13                 height: 100px;
14                 width: 100px;
15             }
16             #cell
17             {
18                background-color: blue;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the blue box below spans the height of the three orange squares.</p>
24         <table>
25             <tr>
26                 <td></td>
27                 <td id="cell" rowspan="3"></td>
28             </tr>
29             <tr>
30                 <td></td>
31             </tr>
32             <tr>
33                 <td></td>
34             </tr>
35         </table>
36     </body>
37 </html>