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-layout set to 'inherit'</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="A table can inherit its 'table-layout' behavior from its parent container.">
10 <style type="text/css">
11 #container
12 {
13 table-layout: fixed;
14 }
15 table, #reference
16 {
17 font: 1em Ahem;
18 }
19 table
20 {
21 background: black;
22 border-spacing: 0;
23 overflow: hidden;
24 table-layout: inherit;
25 width: 5em;
26 }
27 td
28 {
29 padding: 0;
30 }
31 #reference
32 {
33 background: black;
34 margin-top: 10px;
35 width: 5em;
36 }
37 </style>
38 </head>
39 <body>
40 <p>Test passes if both bars below are the same width.</p>
41 <div id="container">
42 <table>
43 <tr>
44 <td>XXXXXXXX</td>
45 <td>XXXXXXXX</td>
46 </tr>
47 </table>
48 </div>
49 <div id="reference">X</div>
50 </body>
51 </html>