3 if (window
.testRunner
) {
4 window
.enablePixelTesting
= true;
5 window
.testRunner
.waitUntilDone();
7 function repaintTest() {
8 window
.scrollBy(0,200);
9 document
.getElementById("scrollpanel").style
.position
= "fixed";
12 <script type=
"text/javascript" src=
"../repaint/resources/text-based-repaint.js"></script>
13 <script type=
"text/javascript" src=
"../../resources/run-after-layout-and-paint.js"></script>
38 <body onload=
"runAfterLayoutAndPaint(runRepaintTest);">
39 <p> When you scroll down the red square should have no painting glitches.
</p>
40 <div class=
"left"></div>
42 <div id=
"scrollpanel">
43 <div class=
"container">
45 <div style=
"background-color: red; width: 100px; height:100px;"></div>