Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / block-non-replaced-height-003.htm
blobe48875fdca631c3b3cae8047da82aea16c9cdf2e
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
12 position: relative;
14 div div
16 width: 1in;
18 #div1 div
20 background: blue;
21 height: 2in;
23 #div2
25 background: orange;
26 height: 2in;
27 left: 1in;
28 position: absolute;
29 top: 0;
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>