4 <script src="../../resources/run-after-display.js"></script>
5 <script src="resources/text-based-repaint.js" type="text/javascript"></script>
8 testRunner.waitUntilDone();
10 window.onload = function()
12 if (window.eventSender) {
13 testRunner.dumpAsTextWithPixelResults();
15 // Scroll the #outerDiv until we reach the #innerDiv.
16 eventSender.mouseMoveTo(50, 50);
17 eventSender.mouseScrollBy(0, -8);
19 document.write("This test is better run under DumpRenderTree. To manually test it, continuously scroll down on the top-most element. There should be no repaint issue.");
22 runAfterDisplay(function() {
24 if (window.testRunner)
25 testRunner.notifyDone();
29 function repaintTest()
31 // Now scroll once in the #innerDiv to the green area.
32 if (window.eventSender)
33 eventSender.mouseScrollBy(0, -10);
38 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element being scrolled off page using javascript. -->
39 <!-- For the test to pass you should not see any RED or PURPLE, only green -->
40 <div style="height: 300px; overflow-y: auto;" id="outerDiv">
41 <div style="height: 300px; background: purple;"></div>
42 <div style="height: 400px; overflow-y: auto;" id="innerDiv">
43 <div style="height: 400px; width: 300px; background: red"></div>
44 <div style="height: 400px; width: 300px; background: green"></div>