empty-cells-in-collapsed-border-model-001

Empty cells property in the collapsed borders model

WeasyPrint

This browser

Assertion
The empty-cells property does not apply to tables with collapsed 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 property in the collapsed borders model</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#empty-cells">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The empty-cells property does not apply to tables with collapsed borders.">
 9         <style type="text/css">
10             table
11             {
12                 background: red;
13                 border-collapse: collapse;
14                 empty-cells: hide;
15             }
16             td
17             {
18                 background: green;
19                 color: green;
20                 padding: 0;
21             }
22         </style>
23     </head>
24     <body>
25         <p>Test passes if there is no red visible on the page.</p>
26         <table>
27             <tr>
28                 <td></td>
29                 <td>FillerTextFillerText</td>
30             </tr>
31             <tr>
32                 <td>FillerTextFillerText</td>
33                 <td></td>
34             </tr>
35         </table>
36     </body>
37 </html>