visibility-descendants-001

Descendents of hidden elements can specify a different visibility

WeasyPrint

This browser

Assertion
Descendents of a hidden element will be visible if they have 'visibility' set to 'visible'.

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: Descendents of hidden elements can specify a different visibility</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#visibility">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="Descendents of a hidden element will be visible if they have 'visibility' set to 'visible'.">
 9         <style type="text/css">
10             #div1
11             {
12                 border: 1px solid blue;
13             }
14             #div2
15             {
16                 color: red;
17                 visibility: hidden;
18             }
19             div div div
20             {
21                 color: green;
22                 visibility: visible;
23             }
24         </style>
25     </head>
26     <body>
27         <p>Test passes if the content "Filler Text" is contained within the blue box and there is no red visible on the page.</p>
28         <div id="div1">
29             <div id="div2">
30                 This test fails if this text is visible on the page.
31                 <div>Filler Text</div>
32             </div>
33         </div>
34     </body>
35 </html>