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