column-width-002

Column-group width property

WeasyPrint

This browser

Assertion
Width can be set on 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: Column-group width property</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#columns">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Width can be set on a table column group.">
 9         <style type="text/css">
10             #table
11             {
12                 display: table;
13             }
14             #colgroup
15             {
16                 background: orange;
17                 display: table-column-group;
18                 width: 1in;
19             }
20             #col
21             {
22                 display: table-column;
23             }
24             #row
25             {
26                 display: table-row;
27             }
28             #cell
29             {
30                 display: table-cell;
31                 height: 1in;
32                 width: 0.5in;
33             }
34             #div1
35             {
36                 background: blue;
37                 height: 1in;
38                 width: 1in;
39             }
40         </style>
41     </head>
42     <body>
43         <p>Test passes if the orange and blue boxes below are the same width.</p>
44         <div id="table">
45             <div id="colgroup">
46                 <div id="col"></div>
47            </div>
48            <div id="row">
49                 <div id="cell"></div>
50            </div>
51         </div>
52         <div id="div1"></div>
53     </body>
54 </html>