| 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 } |
| 11 | 11 |
| 12 .background-not-opaque { | 12 .background-not-opaque { |
| 13 background: rgba(255, 0, 0, 0.5); | 13 background: rgba(255, 0, 0, 0.5); |
| 14 } | 14 } |
| 15 | 15 |
| 16 .border-radius { | 16 .border-radius { |
| 17 border: 2px solid; | 17 border: 2px solid; |
| 18 border-radius: 20px; | 18 border-radius: 20px; |
| 19 } | 19 } |
| 20 | 20 |
| 21 .clip { | 21 .clip { |
| 22 position: absolute; | 22 position: absolute; |
| 23 clip: rect(0px,120px,120px,0px); | 23 clip: rect(0px,120px,120px,0px); |
| 24 } | 24 } |
| 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 { |
| 31 box-shadow: 10px 10px 5px #888888; |
| 32 will-change:transform; /*This reason is not recorded for root layer*/ |
| 33 } |
| 34 |
| 30 .content { | 35 .content { |
| 31 height: 500px; | 36 height: 500px; |
| 32 } | 37 } |
| 33 | 38 |
| 34 div { | 39 div { |
| 35 overflow: scroll; | 40 overflow: scroll; |
| 36 width: 200px; | 41 width: 200px; |
| 37 height: 300px; | 42 height: 300px; |
| 38 background: green; | 43 background: green; |
| 39 } | 44 } |
| 40 | 45 |
| 41 body { | 46 body { |
| 42 height: 2000px; | 47 height: 2000px; |
| 43 } | 48 } |
| 44 </style> | 49 </style> |
| 45 | 50 |
| 46 <div id="scroller1"> | 51 <div id="scroller1"> |
| 47 <div class="content" id="content1"></div> | 52 <div class="content" id="content1"></div> |
| 48 </div> | 53 </div> |
| 49 <div id="scroller2"> | 54 <div id="scroller2"> |
| 50 <div class="content"></div> | 55 <div class="content"></div> |
| 51 </div> | 56 </div> |
| OLD | NEW |