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: Fixed table layout - specified column-group width</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="Specified column-group width is ignored in fixed table layout.">
9 <style type="text/css">
10 table
11 {
12 border-collapse: collapse;
13 table-layout: fixed;
14 width: 200px;
15 }
16 #colgroup
17 {
18 width: 50px;
19 }
20 #cell
21 {
22 background: black;
23 }
24 #div1
25 {
26 background: blue;
27 width: 100px;
28 }
29 #div1, #cell
30 {
31 height: 1em;
32 }
33 </style>
34 </head>
35 <body>
36 <p>Test passes if the boxes below are the same width.</p>
37 <table>
38 <colgroup id="colgroup">
39 <col>
40 </colgroup>
41 <colgroup>
42 <col>
43 </colgroup>
44 <tr>
45 <td id="cell"></td>
46 <td></td>
47 </tr>
48 </table>
49 <div id="div1"></div>
50 </body>
51 </html>