column-width-001

Column with 'width' property

WeasyPrint

This browser

Assertion
Width can be set on a table column.

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 with '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.">
 9         <style type="text/css">
10             #table
11             {
12                 display: table;
13             }
14             #column
15             {
16                 background: orange;
17                 display: table-column;
18             }
19             #row
20             {
21                 display: table-row;
22             }
23             #cell
24             {
25                 display: table-cell;
26                 width: 0.5in;
27             }
28             #div1
29             {
30                 background: blue;
31             }
32             #div1, #cell
33             {
34                 height: 1in;
35             }
36             #column, #div1
37             {
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="column"></div>
46             <div id="row">
47                 <div id="cell"></div>
48             </div>
49         </div>
50         <div id="div1"></div>
51     </body>
52 </html>