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