blob: 5d5f21b8eb7211ecb6c05ca0f695acdbdde5ba03 [file] [log] [blame]
<head>
<style>
html, body {
/* Use simple predictable spacing between html, body and content so
we can propertly test scrollWidth and scrollHeight */
margin: 0;
padding: 5px;
}
div {
height: 10000px;
width: 10000px;
}
</style>
<script>
function scroll() {
document.body.scrollTop = 5000;
document.body.scrollLeft = 4000;
// The calls below should not take effect, given
// that setting scrollTop/Left on the root node
// is no-op in quirks-mode.
document.documentElement.scrollTop = 1;
document.documentElement.scrollLeft = 1;
parent.verifyTest()
}
</script>
</head>
<body onload="scroll()">
<div></div>
</body>