row-visibility-001

Row and the 'visibility' property

WeasyPrint

This browser

Assertion
A 'visibility' value of 'collapse' applies to table rows.

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: Row and the 'visibility' property</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#dynamic-effects">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="A 'visibility' value of 'collapse' applies to table rows.">
 9         <style type="text/css">
10             #table
11             {
12                 display: table;
13             }
14             #row1
15             {
16                 background: red;
17                 visibility: collapse;
18             }
19             #row2
20             {
21                 background: green;
22             }
23             #row1, #row2
24             {
25                 display: table-row;
26             }
27             .cell
28             {
29                 display: table-cell;
30                 height: 1in;
31                 width: 1in;
32             }
33         </style>
34     </head>
35     <body>
36         <p>Test passes if there is no red visible on the page.</p>
37         <div id="table">
38             <div id="row1">
39                 <div class="cell"></div>
40             </div>
41             <div id="row2">
42                 <div class="cell"></div>
43             </div>
44         </div>
45     </body>
46 </html>