OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 | 2 |
3 <style> | 3 <style> |
4 .transparent { | 4 .transparent { |
5 opacity: 0.5; | 5 opacity: 0.5; |
6 } | 6 } |
7 | 7 |
8 .transform { | 8 .transform { |
9 transform: scale(0.8); | 9 transform: scale(0.8); |
10 } | 10 } |
(...skipping 14 matching lines...) Expand all Loading... |
25 | 25 |
26 .clip-path{ | 26 .clip-path{ |
27 clip-path: circle(115px at 20px 20px); | 27 clip-path: circle(115px at 20px 20px); |
28 } | 28 } |
29 | 29 |
30 .box-shadow { | 30 .box-shadow { |
31 box-shadow: 10px 10px 5px #888888; | 31 box-shadow: 10px 10px 5px #888888; |
32 will-change:transform; /*This reason is not recorded for root layer*/ | 32 will-change:transform; /*This reason is not recorded for root layer*/ |
33 } | 33 } |
34 | 34 |
| 35 .composited { |
| 36 will-change:transform; |
| 37 } |
| 38 |
35 .content { | 39 .content { |
36 height: 500px; | 40 height: 500px; |
37 } | 41 } |
38 | 42 |
39 div { | 43 div { |
40 overflow: scroll; | 44 overflow: scroll; |
41 width: 200px; | 45 width: 200px; |
42 height: 300px; | 46 height: 300px; |
43 background: green; | 47 background: green; |
44 } | 48 } |
45 | 49 |
46 body { | 50 body { |
47 height: 2000px; | 51 height: 2000px; |
48 } | 52 } |
49 </style> | 53 </style> |
50 | 54 |
51 <div id="scroller1"> | 55 <div id="scroller1"> |
52 <div class="content" id="content1"></div> | 56 <div class="content" id="content1"></div> |
53 </div> | 57 </div> |
54 <div id="scroller2"> | 58 <div id="scroller2"> |
55 <div class="content"></div> | 59 <div class="content"></div> |
56 </div> | 60 </div> |
OLD | NEW |