blob: 82f20fc84e13b37dfbb00adcea31cad19af5ea8d (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
<head>
<script>
function runTest()
{
if (window.testRunner) {
testRunner.dumpAsTextWithPixelResults();
testRunner.waitUntilDone();
}
scrollBy(0, 100);
}
function handleScroll()
{
var target = document.getElementById("target");
target.style.backgroundColor = "green";
if (window.testRunner)
testRunner.notifyDone();
}
</script>
</head>
<body onload="runTest()" onscroll="handleScroll()" style="height: 200%;">
<div id="target" style="position: absolute; top: 300px; left: 300px; background-color: red; width: 100px; height: 100px;"></div>
</body>
|