empty-cells-002

Empty-cells set to 'hide'

WeasyPrint

This browser

Assertion
An 'empty-cells' value of 'hide' prevents cells without content from having 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 'hide'</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 'hide' prevents cells without content from having visible backgrounds and borders.">
10         <style type="text/css">
11             .empty
12             {
13                 background-color: red;
14                 border: 10px solid red;
15                 empty-cells: hide;
16             }
17         </style>
18     </head>
19     <body>
20         <p>Test passes if there is no red visible on the page.</p>
21         <table>
22             <tr>
23                 <td class="empty"></td>
24                 <td>XXXXX</td>
25                 <td>XXXXX</td>
26             </tr>
27             <tr>
28                 <td>XXXXX</td>
29                 <td class="empty"></td>
30                 <td>XXXXX</td>
31             </tr>
32             <tr>
33                 <td>XXXXX</td>
34                 <td>XXXXX</td>
35                 <td class="empty"></td>
36             </tr>
37         </table>
38     </body>
39 </html>