13 <script type=
"text/javascript">
15 function checkPosition(id
) {
16 var element
= document
.getElementById(id
);
17 var y
= element
.getBoundingClientRect().top
;
19 var resultString
= '';
21 resultString
+= "PASS - Element " + id
+ " moved past y=250px";
23 resultString
+= "FAIL - Element " + id
+ " still at y=" + y
+ "px";
26 var div
= document
.createElement("div");
27 div
.appendChild(document
.createTextNode(resultString
));
28 document
.body
.appendChild(div
);
36 if (window
.testRunner
) {
37 window
.testRunner
.dumpAsText();
38 window
.testRunner
.notifyDone();
45 <div class=
"box" id=
"a">A
</div>
46 <div class=
"box" id=
"b">B
</div>
49 if (window
.testRunner
)
50 window
.testRunner
.waitUntilDone();
54 document
.getElementById('a').style
.top
= "300px";
55 document
.getElementById('a').style
.webkitTransform
= "rotate(45deg)";
56 document
.getElementById('b').style
.top
= "300px";
57 document
.getElementById('b').style
.webkitTransform
= "rotate(90deg)";
58 setTimeout(runTest
, 0);