table-layer-transparency-001

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

WeasyPrint

This browser

Assertion
A background set on a table 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 table 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 table element will show if all table element layers above it are transparent.">
 9         <style type="text/css">
10             table
11             {
12                 background: black;
13             }
14             td
15             {
16                 height: 2em;
17                 width: 2em;
18             }
19         </style>
20     </head>
21     <body>
22         <p>Test passes if there is a box below.</p>
23         <table>
24             <colgroup>
25                 <col>
26                 <col>
27                 <col>
28             </colgroup>
29             <tbody>
30                <tr>
31                     <td></td>
32                     <td></td>
33                     <td></td>
34                </tr>
35                <tr>
36                     <td></td>
37                     <td></td>
38                     <td></td>
39                </tr>
40                <tr>
41                     <td></td>
42                     <td></td>
43                     <td></td>
44                </tr>
45             </tbody>
46         </table>
47     </body>
48 </html>