| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="../../fast/repaint/resources/text-based-repaint.js"></script> | |
| 5 <style> | 4 <style> |
| 6 .main { | 5 .main { |
| 7 position: fixed; | 6 position: absolute; |
| 8 top: 100px; | 7 top: 200px; |
| 9 left: 100px; | 8 left: 100px; |
| 10 width: 200px; | 9 width: 200px; |
| 11 height: 200px; | 10 height: 200px; |
| 12 background-color: lightblue; | 11 background-color: lightblue; |
| 13 will-change: transform; | 12 will-change: transform; |
| 14 } | 13 } |
| 15 | 14 |
| 16 .squahed { | 15 .squahed { |
| 17 position: fixed; | 16 position: absolute; |
| 18 top: 150px; | 17 top: 250px; |
| 19 left: 100px; | 18 left: 100px; |
| 20 width: 200px; | 19 width: 200px; |
| 21 height: 200px; | 20 height: 200px; |
| 22 background-color: lightgreen; | 21 background-color: lightgreen; |
| 23 } | 22 } |
| 24 </style> | 23 </style> |
| 25 <script> | 24 <script> |
| 26 if (window.internals) | 25 onload = function() { |
| 27 internals.settings.setPreferCompositingToLCDTextEnabled(false); | |
| 28 | |
| 29 function repaintTest() { | |
| 30 window.scrollTo(0, 100); | 26 window.scrollTo(0, 100); |
| 31 } | 27 } |
| 32 </script> | 28 </script> |
| 33 </head> | 29 </head> |
| 34 <body style="height:2000px" onload="runRepaintTest()"> | 30 <body style="height:2000px"> |
| 35 <div class="main"></div> | 31 <div class="main"></div> |
| 36 <div class="squahed"></div> | 32 <div class="squahed"></div> |
| 37 </body> | 33 </body> |
| 38 </html> | 34 </html> |
| OLD | NEW |