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: Hidden empty cells are transparent down to table background</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#table-layers">
7 <meta name="flags" content="">
8 <meta name="assert" content="If 'empty-cells' is set to 'hide', empty cells are transparent all the way down to the table background.">
9 <style type="text/css">
10 table
11 {
12 background: orange;
13 border-collapse: separate;
14 border-spacing: 0;
15 }
16 colgroup, col, tbody, tr
17 {
18 background: blue;
19 }
20 td
21 {
22 height: 2em;
23 width: 2em;
24 }
25 #test
26 {
27 background: red;
28 empty-cells: hide;
29 }
30 </style>
31 </head>
32 <body>
33 <p>Test passes if there is an orange square in the middle of the blue square below.</p>
34 <table>
35 <colgroup>
36 <col>
37 <col>
38 <col>
39 </colgroup>
40 <tbody>
41 <tr>
42 <td></td>
43 <td></td>
44 <td></td>
45 </tr>
46 <tr>
47 <td></td>
48 <td id="test"></td>
49 <td></td>
50 </tr>
51 <tr>
52 <td></td>
53 <td></td>
54 <td></td>
55 </tr>
56 </tbody>
57 </table>
58 </body>
59 </html>