| 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 | |
| 39 .content { | 35 .content { |
| 40 height: 500px; | 36 height: 500px; |
| 41 } | 37 } |
| 42 | 38 |
| 43 div { | 39 div { |
| 44 overflow: scroll; | 40 overflow: scroll; |
| 45 width: 200px; | 41 width: 200px; |
| 46 height: 300px; | 42 height: 300px; |
| 47 background: green; | 43 background: green; |
| 48 } | 44 } |
| 49 | 45 |
| 50 body { | 46 body { |
| 51 height: 2000px; | 47 height: 2000px; |
| 52 } | 48 } |
| 53 </style> | 49 </style> |
| 54 | 50 |
| 55 <div id="scroller1"> | 51 <div id="scroller1"> |
| 56 <div class="content" id="content1"></div> | 52 <div class="content" id="content1"></div> |
| 57 </div> | 53 </div> |
| 58 <div id="scroller2"> | 54 <div id="scroller2"> |
| 59 <div class="content"></div> | 55 <div class="content"></div> |
| 60 </div> | 56 </div> |
| OLD | NEW |