white corners webkit-scrollbar

I was fighting this scrollbar-corner today, which takes space and creates unneeded gap. If I use overflow: auto on container this scrollbar corner completely disappears while scrollbar itself remains visible.


You can set the background-color property for the pseudo-element -webkit-scrollbar, doing that you can set the "corner color".


You have to set the ::-webkit-scrollbar-corner pseudo-element, e.g.

::-webkit-scrollbar-corner { background: rgba(0,0,0,0.5); }

Tags:

Html

Css

Webkit