table-layer-transparency-011

The background between cell borders is the table background

WeasyPrint

This browser

Assertion
The background between cell borders (using the separated borders model) is the background of the table element.

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: The background between cell borders is the 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="The background between cell borders (using the separated borders model) is the background of the table element.">
 9         <style type="text/css">
10             table
11             {
12                 background: blue;
13                 border-collapse: separate;
14                 border-spacing: 5px;
15             }
16             td
17             {
18                 background: white;
19                 height: 2em;
20                 width: 2em;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if there is a three-by-three table below with blue borders.</p>
26         <table>
27             <tr>
28                 <td></td>
29                 <td></td>
30                 <td></td>
31             </tr>
32             <tr>
33                 <td></td>
34                 <td></td>
35                 <td></td>
36             </tr>
37             <tr>
38                 <td></td>
39                 <td></td>
40                 <td></td>
41             </tr>
42         </table>
43     </body>
44 </html>