Move parseFontFaceDescriptor to CSSPropertyParser.cpp
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / fast / css / relative-positioned-block-with-inline-ancestor-and-parent-dynamic.html
blobd62d41c1a30de7646f6e2b5a4283a4706f0ab1bb
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
2 <html>
3 <!--This tests that the positioning of a block that has a relatively positioned parent and grandparent remains relative when
4 the positioning of the parent is toggled to static. -->
5 <head>
6 <title>CSS Test: Block boxes within inline boxes are affected by positioning</title>
7 <style type="text/css">
8 body { overflow: hidden; }
9 #span1
11 background: yellow;
12 height: 2in;
13 display: inline;
14 position: relative;
15 width: 2in;
16 left: 2in;
17 top: 2in;
19 #span2
21 background: blue;
22 display: inline;
23 position: relative;
24 top: 2in;
26 #div3
28 background: orange;
29 width: 2in;
31 </style>
32 <script type="text/javascript">
33 if (window.testRunner) {
34 testRunner.waitUntilDone();
37 function run() {
38 document.getElementById("span2").style.position = "static";
39 document.body.offsetTop;
40 if (window.testRunner)
41 testRunner.notifyDone();
43 </script>
44 </head>
45 <body onload="setTimeout('run()', 10);">
46 <p>Test passes if the orange box sits atop the blue box and both are in the center of the view.</p>
47 <span id="span1">
48 <span id="span2">
49 <i>
50 <div id="div3">Filler Text</div>
51 Filler Text
52 </i>
53 </span>
54 </span>
55 </body>
56 </html>