table-visual-layout-005

Row groups occupy same cells as the rows they contain

WeasyPrint

This browser

Assertion
A row group occupies the same cells as the rows it contains.

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: Row groups occupy same cells as the rows they contain</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 row group occupies the same cells as the rows it contains.">
 9         <style type="text/css">
10             #rowgroup
11             {
12                 background: blue;
13             }
14             td
15             {
16                 border: 1px solid black;
17                 width: 2em;
18                 height: 2em;
19             }
20         </style>
21     </head>
22     <body>
23         <p>Test passes if the two middle rows of the table are blue.</p>
24         <table>
25             <tbody>
26                 <tr>
27                     <td></td>
28                     <td></td>
29                     <td></td>
30                     <td></td>
31                 </tr>
32             </tbody>
33             <tbody id="rowgroup">
34                 <tr>
35                     <td></td>
36                     <td></td>
37                     <td></td>
38                     <td></td>
39                 </tr>
40                 <tr>
41                     <td></td>
42                     <td></td>
43                     <td></td>
44                     <td></td>
45                 </tr>
46             </tbody>
47             <tbody>
48                 <tr>
49                     <td></td>
50                     <td></td>
51                     <td></td>
52                     <td></td>
53                 </tr>
54             </tbody>
55         </table>
56     </body>
57 </html>