blob: 7da541f71fcdefb304f06bf81cb36786be4fa21a [file] [log] [blame]
<!-- webkit-test-runner [ useThreadedScrolling=false ] -->
<!DOCTYPE html>
<html>
<head>
<style>
#container {
width: 200px;
height: 200px;
overflow: auto;
}
#content {
width: 100px;
height: 100px;
background-color: yellow;
}
</style>
<script type="text/javascript" charset="utf-8">
if (window.testRunner)
testRunner.dumpAsText();
function doTest()
{
document.body.offsetHeight;
document.getElementById('content').style.height = '1000px';
if (window.internals)
document.getElementById('result').innerText = window.internals.nonFastScrollableRects().length ? "FAIL" : "PASS";
}
window.addEventListener('load', doTest, false);
</script>
</head>
<body>
<div id="container">
<div id="content"></div>
</div>
<pre id="result"></pre>
</body>
</html>