Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / css2.1 / 20110323 / absolute-non-replaced-height-001.htm
blobcc42c8a6f06bebfca31865bb8e5f6de4741e75f5
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: Absolutely positioned, non-replaced elements, static position of fixed element</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#abs-non-replaced-height">
7 <meta name="flags" content="">
8 <meta name="assert" content="The calculation of static position is based on initial containing block when there is a fixed positioned element.">
9 <style type="text/css">
10 html, body, p
12 margin: 0;
13 padding: 0;
15 #div1
17 border: solid black;
18 height: 2in;
19 position: absolute;
20 top: 1in;
21 width: 3in;
23 div div
25 background: blue;
26 height: 1in;
27 position: fixed;
28 width: 1in;
30 </style>
31 </head>
32 <body>
33 <p>Test passes the a filled blue square touches the upper-left corner of the black box.</p>
34 <div id="div1">
35 <div></div>
36 </div>
37 </body>
38 </html>