OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="resources/text-based-repaint.js"></script> | 2 <script src="resources/text-based-repaint.js"></script> |
3 <script> | 3 <script> |
| 4 if (window.internals) |
| 5 internals.settings.setPreferCompositingToLCDTextEnabled(true); |
4 function repaintTest() { | 6 function repaintTest() { |
5 document.getElementById('content').style.height = '100px'; | 7 document.getElementById('content').style.height = '100px'; |
6 } | 8 } |
7 onload = runRepaintTest; | 9 onload = runRepaintTest; |
8 </script> | 10 </script> |
9 Tests invalidation when a scrollbar is destroyed. Passes if there is no scrollba
r. | 11 Tests invalidation when a composited scrollbar is destroyed. Passes if there is
no scrollbar. |
10 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto"> | 12 <div style="position: absolute; top: 100px; left: 0; width: 200px; height: 200px
; overflow: auto; background-color: blue; will-change: transform"> |
11 <div id="content" style="width: 100px; height: 400px"></div> | 13 <div id="content" style="width: 100px; height: 400px"></div> |
12 </div> | 14 </div> |
13 | 15 |
OLD | NEW |