empty-cell-visibility-hidden-001

Cell with hidden visibility content as an empty cell

WeasyPrint

This browser

Assertion
A cell with 'visibility: hidden' is considered an empty cell.

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: Cell with hidden visibility content as an empty cell</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="A cell with 'visibility: hidden' is considered an empty cell.">
 9         <style type="text/css">
10             table
11             {
12                 background: green;
13                 empty-cells: hide;
14             }
15             td
16             {
17                 background: red;
18                 color: green;
19                 height: 100px;
20                 visibility: hidden;
21                 width: 100px;
22             }
23         </style>
24     </head>
25     <body>
26         <p>Test passes if there is a box below and there is no red visible on the page.</p>
27         <table>
28             <tr>
29                 <td>X</td>
30             </tr>
31         </table>
32     </body>
33 </html>