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: Background on a row group element shows if all elements above its layer are transparent</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="A background set on a row group element will show if all table element layers above it are transparent.">
9 <style type="text/css">
10 table
11 {
12 background: red;
13 border-collapse: collapse;
14 }
15 colgroup, col
16 {
17 background-color: red;
18 }
19 tbody
20 {
21 background-color: green;
22 }
23 td
24 {
25 height: 2em;
26 width: 2em;
27 }
28 </style>
29 </head>
30 <body>
31 <p>Test passes if there is no red visible on the page.</p>
32 <table>
33 <colgroup>
34 <col>
35 <col>
36 <col>
37 </colgroup>
38 <tbody>
39 <tr>
40 <td></td>
41 <td></td>
42 <td></td>
43 </tr>
44 <tr>
45 <td></td>
46 <td></td>
47 <td></td>
48 </tr>
49 <tr>
50 <td></td>
51 <td></td>
52 <td></td>
53 </tr>
54 </tbody>
55 </table>
56 </body>
57 </html>