4 <link rel="stylesheet" href="resources/default.css"></style>
5 <script src="resources/repaint.js" type="text/javascript"></script>
6 <script type="text/javascript">
8 testRunner.dumpAsTextWithPixelResults();
10 function repaintTest()
12 var moveMeElement = document.getElementById('moveMe');
13 moveMeElement.style.visibility = "visible";
14 moveMeElement.scrollTop = 100;
15 moveMeElement.scrollLeft = 150;
19 <body style="height:2000px;" onload="runRepaintTest()">
20 <!-- You should see 1 green rectangle in the output and no red. -->
21 <div id="moveMe" style="top: 150px; left: 100px; visibility: hidden" class="fixed clipped"><div class="absolute green" style="top: 100px; left: 150px;"></div></div>
22 <!-- Make sure we are scrolled -->
23 <div style="top: 0px; left: 0px;" class="absolute red"></div>
25 window.scrollTo(1000, 1000);