table-layer-transparency-007

Background on a row element shows if all elements above its layer are transparent

WeasyPrint

This browser

Assertion
A background set on a row element will show if all table element layers above it are transparent.

Source

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