summaryrefslogtreecommitdiffstats
path: root/third_party/WebKit/LayoutTests/fast/overflow/008.html
blob: 78d4cb541677db1ea69a7632c2b4617b2d351765 (plain)
1
2
3
4
5
6
7
8
9
10
11
<html>
<body><div style="overflow:auto;width:200px;height:200px;">
</div>

The word 'PASSED' should be scrolled into view above.  If you don't see it the test has failed.

<script>
document.body.firstChild.innerHTML = "<div style='padding-top:200px;width:200px;padding-left:200px; height:200px;background-color:green;color:white'>PASSED</div>";
document.body.firstChild.scrollLeft = 200;
document.body.firstChild.scrollTop = 200;
</script>