Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / block-non-replaced-height-005.htm
blob3c15f2923d7b717901f9ef53e71786f860270740
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' adjust based on the line box height</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="ahem">
8 <script src="../../resources/ahem.js"></script>
9 <meta name="assert" content="The 'height' is the distance from the topmost to the bottommost line box when a block-level non-replaced element is in normal flow and 'overflow' computes to 'visible'.">
10 <style type="text/css">
11 div
13 position: relative;
15 #div1
17 background: red;
18 width: 2in;
20 span
22 color: blue;
23 display: inline;
24 font: 1in/1em Ahem;
26 #div2
28 background: orange;
29 height: 2in;
30 left: 2in;
31 position: absolute;
32 top: 0;
33 width: 2in;
35 </style>
36 </head>
37 <body>
38 <p>Test passes if the blue and orange boxes below are the same height and there is no red visible on the page.</p>
39 <div>
40 <div id="div1">
41 <span>XX XX</span>
42 </div>
43 <div id="div2"></div>
44 </div>
45 </body>
46 </html>