empty-cells-exceptions-004

Cells with non-collapsed white space content are not considered empty

WeasyPrint

This browser

Assertion
Cells which contain in-flow content of white space which has not been collapsed away by the 'white-space' property are not considered to be empty cells.

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: Cells with non-collapsed white space content are not considered empty</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="Cells which contain in-flow content of white space which has not been collapsed away by the 'white-space' property are not considered to be empty cells.">
 9         <style type="text/css">
10             table
11             {
12                 background: red;
13                 border-spacing: 0;
14                 empty-cells: hide;
15                 white-space: pre;
16             }
17             td
18             {
19                 background: green;
20                 color: green;
21                 padding: 0;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if there is no red visible on the page.</p>
27         <table>
28             <tr>
29                 <td>
30                 </td>
31                 <td>FillerTextFillerText</td>
32             </tr>
33             <tr>
34                 <td>FillerTextFillerText</td>
35                 <td>
36                 </td>
37             </tr>
38         </table>
39     </body>
40 </html>