Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / fixed-table-layout-015.htm
blob24da5203aa8b6a29b8fb247532489860d30e04ff
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
12 border-spacing: 0;
13 table-layout: fixed;
14 width: 200px;
16 #colgroup
18 width: 75px;
20 #cell
22 background: black;
23 width: 100px;
27 padding: 0;
29 #div1
31 background: blue;
32 width: 100px;
34 #div1, td
36 height: 1em;
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>