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