| OLD | NEW |
| 1 <!-- Based on fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html --> | 1 <!-- Based on fast/repaint/overflow-hidden-in-overflow-hidden-scrolled.html --> |
| 2 <!DOCTYPE html> | 2 <!DOCTYPE html> |
| 3 <html> | 3 <html> |
| 4 <head> | 4 <head> |
| 5 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> | 5 <link rel="stylesheet" href="../../../fast/repaint/resources/default.css"> |
| 6 <style> | 6 <style> |
| 7 #outer { | 7 #outer { |
| 8 position: relative; | 8 position: relative; |
| 9 overflow: hidden; | 9 overflow: hidden; |
| 10 height: 200px; | 10 height: 200px; |
| (...skipping 15 matching lines...) Expand all Loading... |
| 26 .red { | 26 .red { |
| 27 background-color: red; | 27 background-color: red; |
| 28 } | 28 } |
| 29 | 29 |
| 30 .green { | 30 .green { |
| 31 background-color: green; | 31 background-color: green; |
| 32 } | 32 } |
| 33 </style> | 33 </style> |
| 34 <script src="resources/paint-invalidation-test.js"></script> | 34 <script src="resources/paint-invalidation-test.js"></script> |
| 35 <script> | 35 <script> |
| 36 window.expectedPaintInvalidationObjects = [ | |
| 37 "LayoutBlockFlow DIV class='innerWrapper'", | |
| 38 "LayoutBlockFlow DIV class='red'", | |
| 39 "LayoutBlockFlow DIV id='ucp' class='green'", | |
| 40 ]; | |
| 41 function paintInvalidationTest() | 36 function paintInvalidationTest() |
| 42 { | 37 { |
| 43 window.location.hash = "#ucp"; | 38 window.location.hash = "#ucp"; |
| 44 } | 39 } |
| 45 | 40 |
| 46 function runTest() | 41 function runTest() |
| 47 { | 42 { |
| 48 document.getElementById("outer").scrollTop = 1000; | 43 document.getElementById("outer").scrollTop = 1000; |
| 49 runPaintInvalidationTest(); | 44 runPaintInvalidationTest(); |
| 50 } | 45 } |
| 51 </script> | 46 </script> |
| 52 </head> | 47 </head> |
| 53 <body onload="runTest()"> | 48 <body onload="runTest()"> |
| 54 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element
being scrolled off page using javascript. --> | 49 <!-- Bug 71550 - REGRESSION (r93614): Content remains despite parent element
being scrolled off page using javascript. --> |
| 55 <!-- For the test to pass you should not see any RED, only green --> | 50 <!-- For the test to pass you should not see any RED, only green --> |
| 56 <div id="outer"> | 51 <div id="outer"> |
| 57 <section> | 52 <section> |
| 58 <div class="innerWrapper"> | 53 <div class="innerWrapper"> |
| 59 <div class="red"></div> | 54 <div class="red"></div> |
| 60 <div id="ucp" class="green"></div> | 55 <div id="ucp" class="green"></div> |
| 61 </div> | 56 </div> |
| 62 </section> | 57 </section> |
| 63 </div> | 58 </div> |
| 64 </body> | 59 </body> |
| 65 </html> | 60 </html> |
| OLD | NEW |