empty-cells-exceptions-002

Cells containing empty element in-flow content are not considered empty

WeasyPrint

This browser

Assertion
Cells that contain in-flow content (including empty elements) are not considered to be empty cells. The table under test really contains two tests--the first cell tests in-flow content, the second cell tests an empty in-flow element.

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 containing empty element in-flow 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 that contain in-flow content (including empty elements) are not considered to be empty cells. The table under test really contains two tests--the first cell tests in-flow content, the second cell tests an empty in-flow element.">
 9         <style type="text/css">
10             table
11             {
12                 background: red;
13                 border-spacing: 0;
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>
29                     <span>&nbsp;</span>
30                 </td>
31                 <td>FillerTextFillerText</td>
32             </tr>
33             <tr>
34                 <td>FillerTextFillerText</td>
35                 <td>
36                     <span></span>
37                 </td>
38             </tr>
39         </table>
40     </body>
41 </html>