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