1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
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. -->
6 <title>CSS Test: Block boxes within inline boxes are affected by positioning
</title>
7 <style type=
"text/css">
8 body
{ overflow: hidden
; }
32 <script type=
"text/javascript">
33 if (window
.testRunner
) {
34 testRunner
.waitUntilDone();
38 document
.getElementById("span2").style
.position
= "static";
39 document
.body
.offsetTop
;
40 if (window
.testRunner
)
41 testRunner
.notifyDone();
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>
50 <div id=
"div3">Filler Text
</div>