table-organization-002

Table organization (rows in row groups)

WeasyPrint

This browser

Assertion
Table rows can be grouped into table row groups.

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: Table organization (rows in row groups)</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#tables-intro">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Table rows can be grouped into table row groups.">
 9         <style type="text/css">
10             table
11             {
12                 border: 1px solid black;
13             }
14             #tb1
15             {
16                 background: blue;
17             }
18             #tb2
19             {
20                 background: purple;
21             }
22             td
23             {
24                 height: 2em;
25                 width: 2em;
26             }
27         </style>
28     </head>
29     <body>
30         <p>Test passes if the table below has two blue rows on top and two purple rows on the bottom.</p>
31         <table>
32             <tbody id="tb1">
33                 <tr>
34                     <td></td>
35                     <td></td>
36                     <td></td>
37                     <td></td>
38                 </tr>
39                 <tr>
40                     <td></td>
41                     <td></td>
42                     <td></td>
43                     <td></td>
44                 </tr>
45             </tbody>
46             <tbody id="tb2">
47                 <tr>
48                     <td></td>
49                     <td></td>
50                     <td></td>
51                     <td></td>
52                 </tr>
53                 <tr>
54                     <td></td>
55                     <td></td>
56                     <td></td>
57                     <td></td>
58                 </tr>
59             </tbody>
60         </table>
61     </body>
62  </html>