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: Cell in the first row with specified width sets the width for the column</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#fixed-table-layout">
7 <meta name="flags" content="">
8 <meta name="assert" content="A cell in the first row with specified non-auto 'width' sets the width for its column in the absence of a column element with specified non-auto width.">
9 <style type="text/css">
10 table
11 {
12 border-collapse: collapse;
13 table-layout: fixed;
14 width: 200px;
15 }
16 td
17 {
18 padding: 0;
19 }
20 #cell
21 {
22 background: black;
23 width: 100px;
24 }
25 #div1
26 {
27 background: blue;
28 height: 1em;
29 width: 100px;
30 }
31 </style>
32 </head>
33 <body>
34 <p>Test passes if the boxes below are the same width.</p>
35 <table>
36 <tr>
37 <td id="cell">X</td>
38 <td></td>
39 </tr>
40 </table>
41 <div id="div1"></div>
42 </body>
43 </html>