empty-cells-001

Empty-cells set to 'show'

WeasyPrint

This browser

Assertion
An 'empty-cells' value of 'show' allows cells without content to have visible backgrounds and borders.

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: Empty-cells set to 'show'</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#propdef-empty-cells">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/tables.html#empty-cells">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="An 'empty-cells' value of 'show' allows cells without content to have visible backgrounds and borders.">
10         <style type="text/css">
11             td
12             {
13                 color: white;
14             }
15             .empty
16             {
17                 background-color: black;
18                 border: 10px solid black;
19                 empty-cells: show;
20             }
21         </style>
22     </head>
23     <body>
24         <p>Test passes if three boxes appear below.</p>
25         <table>
26             <tr>
27                 <td class="empty"></td>
28                 <td>XXXXX</td>
29                 <td>XXXXX</td>
30             </tr>
31             <tr>
32                 <td>XXXXX</td>
33                 <td class="empty"></td>
34                 <td>XXXXX</td>
35             </tr>
36             <tr>
37                 <td>XXXXX</td>
38                 <td>XXXXX</td>
39                 <td class="empty"></td>
40             </tr>
41         </table>
42     </body>
43 </html>