OLD | NEW |
| (Empty) |
1 <!DOCTYPE html> | |
2 <html> | |
3 <head> | |
4 <link rel="stylesheet" href="resources/default.css"> | |
5 <style> | |
6 #outer { | |
7 position: relative; | |
8 overflow: hidden; | |
9 height: 200px; | |
10 } | |
11 | |
12 section { | |
13 padding: 192px 0 0 0; | |
14 width: 200px; | |
15 } | |
16 | |
17 div { | |
18 height: 190px; | |
19 } | |
20 | |
21 .innerWrapper { | |
22 overflow: hidden; | |
23 } | |
24 | |
25 .red { | |
26 background-color: red; | |
27 } | |
28 | |
29 .green { | |
30 background-color: green; | |
31 } | |
32 </style> | |
33 <script> | |
34 if (window.testRunner) { | |
35 testRunner.dumpAsTextWithPixelResults(); | |
36 testRunner.waitUntilDone(); | |
37 } | |
38 | |
39 function repaintTest() | |
40 { | |
41 window.location.hash = "#ucp"; | |
42 if (window.testRunner) | |
43 testRunner.notifyDone(); | |
44 } | |
45 | |
46 function runTest() | |
47 { | |
48 document.getElementById("outer").scrollTop = 1000; | |
49 setTimeout(repaintTest, 0); | |
50 } | |
51 window.addEventListener("load", runTest, false); | |
52 </script> | |
53 </head> | |
54 <body> | |
55 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element
being scrolled off page using javascript. --> | |
56 <!-- For the test to pass you should not see any RED, only green --> | |
57 <div id="outer"> | |
58 <section> | |
59 <div class="innerWrapper"> | |
60 <div class="red"></div> | |
61 <table id="ucp" class="green"><td style="height: 190px"></td></t
able> | |
62 </div> | |
63 </section> | |
64 </div> | |
65 </body> | |
66 </html> | |
OLD | NEW |