1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 <!-- This tests that toggling an inline's position to relative updates the position of any child blocks. -->
5 <title>CSS Test: Block boxes within inline boxes are affected by positioning
</title>
6 <style type=
"text/css">
7 body
{ overflow: hidden
; }
31 <script type=
"text/javascript">
32 if (window
.testRunner
) {
33 testRunner
.waitUntilDone();
37 document
.getElementById("span2").style
.position
= "relative";
38 document
.body
.offsetTop
;
39 if (window
.testRunner
)
40 testRunner
.notifyDone();
44 <body onload=
"setTimeout('run()', 10);">
45 <p>Test passes if the orange box sits atop the blue box and both are in the center of the view.
</p>
48 <div id=
"div3">Filler Text
</div>