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