<html> | |
<head> | |
<style> | |
body { | |
overflow: hidden; | |
background-color: green; | |
} | |
iframe { | |
position: absolute; | |
width: 400px; | |
height: 400px; | |
left: 0px; | |
top: 200px; | |
border: 0px; | |
} | |
</style> | |
<script> | |
function runTest() { | |
var iframe = document.getElementsByTagName("iframe")[0]; | |
iframe.contentWindow.scrollTo(0, 250); | |
} | |
if (window.testRunner) | |
testRunner.dumpAsText(true); | |
window.addEventListener("load", runTest, false); | |
</script> | |
</head> | |
<body> | |
<iframe src="resources/has-composited-iframe-child.html"></iframe> | |
</body> | |
</html> |