empty-cells-exceptions-003

Cells with collapsed white space content are considered empty

WeasyPrint

This browser

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