table-visual-layout-003

Each table row box occupies one row of cells

WeasyPrint

This browser

Assertion
Each table row box occupies one row of cells.

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: Each table row box occupies one row of cells</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="Each table row box occupies one row of cells.">
 9         <style type="text/css">
10             #row
11             {
12                 background: blue;
13             }
14             td
15             {
16                 border: 1px solid black;
17                 height: 2em;
18                 width: 2em;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the middle row of the table below is blue.</p>
24         <table>
25             <tr>
26                 <td></td>
27                 <td></td>
28                 <td></td>
29             </tr>
30             <tr id="row">
31                 <td></td>
32                 <td></td>
33                 <td></td>
34             </tr>
35             <tr>
36                 <td></td>
37                 <td></td>
38                 <td></td>
39             </tr>
40         </table>
41     </body>
42 </html>