| OLD | NEW |
| (Empty) | |
| 1 <!DOCTYPE html> |
| 2 <html> |
| 3 <head> |
| 4 <style> |
| 5 .custom_scrollbar::-webkit-scrollbar { |
| 6 width: 12px; |
| 7 } |
| 8 |
| 9 .custom_scrollbar::-webkit-scrollbar-track { |
| 10 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.3); |
| 11 border-radius: 10px; |
| 12 } |
| 13 |
| 14 .custom_scrollbar::-webkit-scrollbar-thumb { |
| 15 border-radius: 10px; |
| 16 -webkit-box-shadow: inset 0 0 6px rgba(0,0,0,0.5); |
| 17 } |
| 18 |
| 19 #container { |
| 20 width: 220px; |
| 21 height: 200px; |
| 22 overflow-y: scroll; |
| 23 } |
| 24 |
| 25 #content { |
| 26 width: 200px; |
| 27 height: 1000px; |
| 28 background: silver; |
| 29 margin: 0px; |
| 30 } |
| 31 </style> |
| 32 </head> |
| 33 <body> |
| 34 <div class="custom_scrollbar" id="container"> |
| 35 <div id="content"> |
| 36 The custom scrollbar should scroll on main thread. |
| 37 </div> |
| 38 </div> |
| 39 </body> |
| 40 </html> |
| OLD | NEW |