| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <html> | 2 <html> |
| 3 <head> | 3 <head> |
| 4 <script src="resources/text-based-repaint.js"></script> | 4 <script src="resources/repaint.js"></script> |
| 5 <style> | 5 <style> |
| 6 | 6 |
| 7 #scroller { | 7 #scroller { |
| 8 position: absolute; | 8 position: absolute; |
| 9 left: 10px; | 9 left: 10px; |
| 10 top: 60px; | 10 top: 60px; |
| 11 width: 700px; | 11 width: 700px; |
| 12 height: 400px; | 12 height: 400px; |
| 13 overflow: scroll; | 13 overflow: scroll; |
| 14 will-change: transform; | 14 will-change: transform; |
| (...skipping 25 matching lines...) Expand all Loading... |
| 40 | 40 |
| 41 function repaintTest() | 41 function repaintTest() |
| 42 { | 42 { |
| 43 document.querySelector("#scroller").scrollTop = 100; | 43 document.querySelector("#scroller").scrollTop = 100; |
| 44 document.querySelector("#block").style.left = '50px'; | 44 document.querySelector("#block").style.left = '50px'; |
| 45 } | 45 } |
| 46 | 46 |
| 47 </script> | 47 </script> |
| 48 </body> | 48 </body> |
| 49 </html> | 49 </html> |
| OLD | NEW |