| OLD | NEW |
| 1 <html> | 1 <html> |
| 2 <head> | 2 <head> |
| 3 <title>Reduction</title> | 3 <title>Reduction</title> |
| 4 <style> | 4 <style> |
| 5 #content-container { | 5 #content-container { |
| 6 position:absolute; | 6 position:absolute; |
| 7 top:48px; | 7 top:48px; |
| 8 bottom:0; | 8 bottom:0; |
| 9 left:0; | 9 left:0; |
| 10 right:0; | 10 right:0; |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 46 .positioned-4 { | 46 .positioned-4 { |
| 47 position:absolute; | 47 position:absolute; |
| 48 top:20px; | 48 top:20px; |
| 49 height:80px; | 49 height:80px; |
| 50 right:20px; | 50 right:20px; |
| 51 width:80px; | 51 width:80px; |
| 52 } | 52 } |
| 53 </style> | 53 </style> |
| 54 </head> | 54 </head> |
| 55 | 55 |
| 56 <script src="../../fast/repaint/resources/repaint.js"></script> | |
| 57 <script src="../../resources/run-after-display.js"></script> | 56 <script src="../../resources/run-after-display.js"></script> |
| 58 | 57 |
| 59 <script> | 58 <script> |
| 60 if (window.testRunner) { | 59 if (window.testRunner) { |
| 61 testRunner.dumpAsTextWithPixelResults(); | 60 testRunner.dumpAsTextWithPixelResults(); |
| 62 testRunner.waitUntilDone(); | 61 testRunner.waitUntilDone(); |
| 63 } | 62 } |
| 64 | 63 |
| 65 function repaintTest() { | 64 function repaintTest() { |
| 66 runAfterDisplay(function() { | 65 runAfterDisplay(function() { |
| 67 document.getElementById('overflow').scrollTop = 30; | 66 document.getElementById('overflow').scrollTop = 30; |
| 68 runAfterDisplay(function() { | 67 runAfterDisplay(function() { |
| 69 document.getElementById('overflow').scrollTop = 50; | 68 document.getElementById('overflow').scrollTop = 50; |
| 70 testRunner.notifyDone(); | 69 testRunner.notifyDone(); |
| 71 }); | 70 }); |
| 72 }); | 71 }); |
| 73 } | 72 } |
| 74 | 73 |
| 75 </script> | 74 </script> |
| 76 | 75 |
| 77 <body onload="runRepaintTest()"> | 76 <body onload="repaintTest()"> |
| 78 <div id="content-container"> | 77 <div id="content-container"> |
| 79 <div id="composited"></div> | 78 <div id="composited"></div> |
| 80 <div id="positioned-2"> | 79 <div id="positioned-2"> |
| 81 <div id="transformed-container" class="positioned-3"> | 80 <div id="transformed-container" class="positioned-3"> |
| 82 <div id="overflow" class="positioned-3"> | 81 <div id="overflow" class="positioned-3"> |
| 83 <div class="positioned-4"></div> | 82 <div class="positioned-4"></div> |
| 84 | 83 |
| 85 <div style="background-color:purple; width:50px; height:300p
x;"></div> | 84 <div style="background-color:purple; width:50px; height:300p
x;"></div> |
| 86 <br/> | 85 <br/> |
| 87 <div style="width:500px; height:50px; background-color:green
;"></div> | 86 <div style="width:500px; height:50px; background-color:green
;"></div> |
| 88 </div> | 87 </div> |
| 89 </div> | 88 </div> |
| 90 </div> | 89 </div> |
| 91 </div> | 90 </div> |
| 92 </body> | 91 </body> |
| 93 </html> | 92 </html> |
| OLD | NEW |