table-column-group-001

Table-column-group

WeasyPrint

This browser

Assertion
An element with 'display: table-column-group' is rendered as if it were a table column group.

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-column-group</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-display">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="An element with 'display: table-column-group' is rendered as if it were a table column group.">
 9         <style type="text/css">
10             #table
11             {
12                 display: table;
13             }
14             .colgroup
15             {
16                 background: black;
17                 display: table-column-group;
18             }
19             .column
20             {
21                 display: table-column;
22             }
23             .tr
24             {
25                 display: table-row;
26             }
27             .td
28             {
29                 display: table-cell;
30                 width: 2em;
31                 height: 2em;
32             }
33         </style>
34     </head>
35     <body>
36         <p>Test passes if there is a square below.</p>
37         <div id="table">
38             <div class="colgroup">
39                 <div class="column"></div>
40                 <div class="column"></div>
41             </div>
42             <div class="colgroup">
43                 <div class="column"></div>
44                 <div class="column"></div>
45             </div>
46             <div class="tr">
47                 <div class="td"></div>
48                 <div class="td"></div>
49                 <div class="td"></div>
50                 <div class="td"></div>
51             </div>
52             <div class="tr">
53                 <div class="td"></div>
54                 <div class="td"></div>
55                 <div class="td"></div>
56                 <div class="td"></div>
57              </div>
58             <div class="tr">
59                 <div class="td"></div>
60                 <div class="td"></div>
61                 <div class="td"></div>
62                 <div class="td"></div>
63             </div>
64             <div class="tr">
65                 <div class="td"></div>
66                 <div class="td"></div>
67                 <div class="td"></div>
68                 <div class="td"></div>
69             </div>
70         </div>
71     </body>
72 </html>