blob: 7bc4ee79a38b8d8e43fd0bee6e7d2f6f1564c89f [file] [log] [blame]
<script>
function test()
{
if (window.testRunner)
{
testRunner.dumpAsText();
testRunner.waitUntilDone();
}
document.body.offsetTop;
document.getElementById("iframe").style.height = "100px";
}
</script>
<body onload="test()">
<iframe id="iframe" style="height: 200px;" src="data:text/html,
<head>
<script>
function resized()
{
if (window.testRunner)
{
console.log('PASS');
testRunner.notifyDone();
}
else
document.body.appendChild(document.createTextNode('PASS'));
}
</script>
</head>
<body onresize='resized()'></body>
"></iframe>
</body>