Re: Var for scrollbar size

On 20 May 2016 at 01:02, Tab Atkins Jr. <> wrote:
> On Wed, Apr 27, 2016 at 9:16 AM, Daniel Buchner <> wrote:
> > Hey Dub Stylers!
> >
> > Not sure why I never thought of this all the times I have needed it, but
> > after running into it again today I started wondering why there isn't a var
> > in CSS that represents scrollbar size?
> >
> > I would love to have a var like currentColor that stands for the scrollbar
> > size; it would really help in layouts where you want to prevent snap from
> > scrollbar appearance, accounting for fixed element overlap of non-viewport
> > scrollable elements, etc.
> >
> > So how 'bout it, anyone up for scrollbarSize? :)
> >
> > Let me know what you think,
> Yup, we've discussed this internally, and it came up at the last f2f.
> I recommend adding it as a new unit, like "1scrollbar"; that lets the
> value work in calc() without depending on us finally fixing the "allow
> keywords in calc()" issue. ^_^

Having this as unit sounds like a rather hacky solution. There is
probably no need for 3scrollbar or 0.5scrollbar.
So, I vote for pushing on fixing the "allow keywords in calc()" issue
instead or find another solution to consider the scrollbar sizes in


Received on Friday, 20 May 2016 06:57:14 UTC