5 if (window
.testRunner
) {
6 testRunner
.dumpAsTextWithPixelResults();
7 testRunner
.waitUntilDone();
12 function handleScroll()
14 var target
= document
.getElementById("target");
15 target
.style
.backgroundColor
= "green";
16 if (window
.testRunner
)
17 testRunner
.notifyDone();
21 <body onload=
"runTest()" onscroll=
"handleScroll()" style=
"height: 200%;">
22 <div id=
"target" style=
"position: absolute; top: 300px; left: 300px; background-color: red; width: 100px; height: 100px;"></div>