table-visual-layout-009

Column group boxes occupy same cells as the columns they contain

WeasyPrint

This browser

Assertion
A column group box occupies the same cells as the columns 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: Column group boxes occupy same cells as the columns 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 column group box occupies the same cells as the columns it contains.">
 9         <style type="text/css">
10             #black
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 two columns in the table are blue.</p>
24         <table>
25             <colgroup>
26                 <col>
27             </colgroup>
28             <colgroup id="black">
29                 <col>
30                 <col>
31             </colgroup>
32             <colgroup>
33                 <col>
34             </colgroup>
35             <tr>
36                 <td></td>
37                 <td></td>
38                 <td></td>
39                 <td></td>
40             </tr>
41             <tr>
42                 <td></td>
43                 <td></td>
44                 <td></td>
45                 <td></td>
46             </tr>
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         </table>
60     </body>
61 </html>