table-layout-initial-001

Initial value of table-layout

WeasyPrint

This browser

Flags
ahem
Assertion
The initial value of table-layout is 'auto'.

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: Initial value of table-layout</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#propdef-table-layout">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#width-layout">
 8         <meta name="flags" content="ahem">
 9         <meta name="assert" content="The initial value of table-layout is 'auto'.">
10         <style type="text/css">
11             table
12             {
13                 background: black;
14                 border-spacing: 0;
15                 width: 10em;
16             }
17             colgroup
18             {
19                 width: 5em;
20             }
21             td
22             {
23                 overflow: hidden;
24                 padding: 0;
25             }
26             #div1
27             {
28                 background: blue;
29                 height: 2em;
30                 width: 20em;
31             }
32             td, #div1
33             {
34                 font: 20px/1em Ahem;
35             }
36         </style>
37     </head>
38     <body>
39         <p>Test passes if the black bar is at least as wide as the blue bar.</p>
40         <table>
41             <colgroup></colgroup>
42             <colgroup></colgroup>
43             <tr>
44                 <td>XXXXX</td>
45                 <td>XXXXX</td>
46             </tr>
47             <tr>
48                <td>XXXXXXXXX0</td>
49                <td>XXXXXXXXX0</td>
50             </tr>
51         </table>
52         <div id="div1"></div>
53     </body>
54 </html>