Bug 1729777 [wpt PR 30405] - Parsing for contain-intrinsic-size: auto <length>, a...
[gecko.git] / testing / web-platform / tests / css / CSS2 / normal-flow / block-non-replaced-height-003.xht
blob0e824c4f4c534f88ab6248a3263e82060cbc045d
1 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
2 <html xmlns="http://www.w3.org/1999/xhtml">
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>