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