visibility-applies-to-003

Visibility applied to elements with 'display' set to 'table-footer-group'

WeasyPrint

This browser

Assertion
The 'visibility' property applies to elements with 'display' set to 'table-footer-group'.

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: Visibility applied to elements with 'display' set to 'table-footer-group'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#propdef-visibility">
 7         <link rel="help" href="http://www.w3.org/TR/CSS21/visufx.html#visibility">
 8         <meta name="flags" content="">
 9         <meta name="assert" content="The 'visibility' property applies to elements with 'display' set to 'table-footer-group'.">
10         <style type="text/css">
11             #test
12             {
13                 display: table-footer-group;
14                 visibility: hidden;
15             }
16             #table
17             {
18                 display: table;
19                 table-layout: fixed;
20             }
21             #row
22             {
23                 display: table-row;
24             }
25             #cell
26             {
27                 background: red;
28                 display: table-cell;
29                 height: 1in;
30                 width: 1in;
31             }
32             .box
33             {
34                 background: black;
35                 height: 1em;
36                 width: 1in;
37             }
38         </style>
39     </head>
40     <body>
41         <p>Test passes if there is white space between the boxes below and there is no red visible on the page.</p>
42         <div class="box"></div>
43         <div id="table">
44             <div id="test">
45                 <div id="row">
46                     <div id="cell"></div>
47                 </div>
48             </div>
49         </div>
50         <div class="box"></div>
51     </body>
52 </html>