Re: [csswg-drafts] [css-scrollbars] `scrollbar-width` should support custom measurements (#6263)

> Scrollbars (should!) show how much content is visible (including if there is more), and they should be draggable.

This is a really good summary of the a11y issue. The first half is the reason I personally customize scrollbars to be always visible and wide on whatever OS I'm on, but the second part is the argument for why this isn't just a personal-preference thing.

> Important: Unlike Buttons on a web page, the scrollbars don't zoom!
> This is another problem with accessibility, and it might be related to the lack of a numeric width.

This is key actually. Scrollbars are in a sort of gr(a|e)y area -- they're technically browser chrome but very dependent on the content of the page, and already somewhat adjustable by CSS -- unlike, say, the titlebar/tab. It would make sense that they should be adjustable in the way other page elements can be adjustable, rather than falling back on the "they're just chrome" argument that feels like it underlies a lot of the objections to this.

> Also, scrollbar-width simply doesn't follow other width specifications. It's kind of non-standard in my opinion.

It's very nonstandard, and for no good in-CSS reason -- the reasons all come from browsers' interests in having consistent UI. Great, but a11y should trump consistency. This width should be like other CSS widths, and accept CSS length values.

-- 
GitHub Notification of comment by rootwork
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/6263#issuecomment-1203302396 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Tuesday, 2 August 2022 23:16:11 UTC