Upstream version 5.34.98.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / fast / repaint / repaint-during-scroll.html
1 <head>
2     <script src="resources/repaint.js"></script>
3     <script>
4         function repaintTest()
5         {
6             if (window.testRunner)
7                 testRunner.waitUntilDone();
8             var target = document.getElementById("target");
9             scrollBy(0, 100);
10         }
11
12         function handleScroll()
13         {
14             var target = document.getElementById("target");
15             target.style.backgroundColor = "green";
16             if (window.testRunner)
17                 testRunner.notifyDone();
18         }
19     </script>
20 </head>
21 <body onload="runRepaintTest()" onscroll="handleScroll()" style="height: 200%;">
22     <div id="target" style="position: absolute; top: 300px; left: 300px; background-color: red; width: 100px; height: 100px;"></div>
23 </body>