1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
3 <!-- This tests that a block inside nested inlines still respects the positioning of a parent when a relatively positioned ancestor
4 gets toggled to static. -->
6 <title>CSS Test: Block boxes within inline boxes are affected by positioning
</title>
7 <style type=
"text/css">
35 <script type=
"text/javascript">
36 if (window
.testRunner
) {
37 testRunner
.waitUntilDone();
41 document
.getElementById("div2").style
.position
= "static";
42 document
.body
.offsetTop
;
43 if (window
.testRunner
)
44 testRunner
.notifyDone();
48 <body onload=
"setTimeout('run()', 10);">
49 <p>Test passes if each of the orange boxes is sandwiched between two blue boxes and two groups of blue and orange boxes are inside the big yellow box
50 and the remaining group is below it.
</p>
54 <div id=
"div3">Filler Text
</div>
57 <div id=
"div3">Filler Text
</div>
60 <div id=
"div3">Filler Text
</div>