Description
Currently the transformed Webkit scrollbar styles are very basic and do not match what's rendered in Firefox. Does it make sense to try and match the styles that occur in Firefox to Webkit?
-
At least with Firefox on macOS,
scrollbar-width: thin
renders to11px
. Currently postcss-scrollbar is translating it to.5rem
, which for when the root font-size is16px
it ends up as8px
but because it's using rem it is affected by whatever that root font-size is. For example,font-size: 32px
means the scrollbars would be16px
. -
Again on macOS, Firefox gives the thumb a border-radius and some spacing that can be replicated using borders and border-radius, it's not perfect but it's doable.
Here's pen of what's possible: https://codepen.io/philipbordallo/pen/mvevry