1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 <!-- This tests that a block respects the positioning of a relative positioned inline parent when a relative
4 positioned inline ancestor gets 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
; }
33 <script type=
"text/javascript">
34 if (window
.testRunner
) {
35 testRunner
.waitUntilDone();
39 document
.getElementById("span1").style
.position
= "static";
40 document
.body
.offsetTop
;
41 if (window
.testRunner
)
42 testRunner
.notifyDone();
46 <body onload=
"setTimeout('run()', 10);">
47 <p>Test passes if the orange box sits atop the blue box and both are in the center of the view.
</p>
51 <div id=
"div3">Filler Text
</div>