One of my design dependencies is styling the scrollbar and I would like it reset to the browser defaults.
I have applied the following styles in an attempt to remove the styling:
::-webkit-scrollbar { all: unset;}
::-webkit-scrollbar { all: initial;}
::-webkit-scrollbar { width: unset;}
::-webkit-scrollbar { width: initial;}
All styles applied to the scrollbar (colors, pointers etc.) were reset except for the width, which is always visible, but should instead autohide on Mac OS X and be visible in Windows.
The only way I was able to get all the styles to be fully reset was to manually remove them from my dependency. I would prefer to replace the styles in the standard way, using the cascade to override the undesired styles.
What styles should I apply to fully revert -webkit-scrollbar
styling back to the browser defaults?
The question of how to reset -webkit-scrollbar
styles has already been asked (here) but the solutions recommended in the responses do not resolve my problem.