block-non-replaced-height-003

Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto'

WeasyPrint

This browser

Assertion
The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' computes 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: Block-level non-replaced elements in normal flow when 'overflow' computes to 'visible' and 'height' is 'auto'</title>
 5         <link rel="author" title="Microsoft" href="http://www.microsoft.com/">
 6         <link rel="help" href="http://www.w3.org/TR/CSS21/visudet.html#normal-block">
 7         <meta name="flags" content="">
 8         <meta name="assert" content="The 'height' is the 'height' of the child block box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'.">
 9         <style type="text/css">
10             div
11             {
12                 position: relative;
13             }
14             div div
15             {
16                 width: 1in;
17             }
18             #div1 div
19             {
20                 background: blue;
21                 height: 2in;
22             }
23             #div2
24             {
25                 background: orange;
26                 height: 2in;
27                 left: 1in;
28                 position: absolute;
29                 top: 0;
30             }
31         </style>
32     </head>
33     <body>
34         <p>Test passes if the blue and orange boxes below are the same height.</p>
35         <div>
36             <div id="div1">
37                 <div></div>
38             </div>
39             <div id="div2"></div>
40         </div>
41     </body>
42 </html>