blob: bf9b543ce36eec68603700426b835c88d58fdc68 [file] [log] [blame]
<html>
<head>
<script>
function test()
{
document.body.offsetTop;
var target = document.getElementById("target");
target.style.visibility = "visible";
document.body.offsetTop;
if (window.layoutTestController) {
layoutTestController.display();
finish();
} else
setTimeout(finish, 0);
}
function finish()
{
var target = document.getElementById("target");
target.style.left = "0";
target.style.backgroundColor = "green";
}
</script>
</head>
<body onload="test()">
<div id="target" style="position: absolute; top: 0; left: 100px; width: 100px; height: 100px; background-color: red; visibility: hidden;"></div>
</body>
</html>