-
Notifications
You must be signed in to change notification settings - Fork 677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[css-scrollbars] scrollbar-width
should support custom measurements
#6263
Comments
A big +1 for me on this request, in particular as a way to support accessibility. |
This property originally just took a length, exactly as you suggest. During review, multiple browser implementors objected to allowing arbitrary sizes, as it would interfere with usage of the browser-default scrollbars. The current three-value design is a compromise allowing some control (particularly for the primary requested use-case, narrow scrollbars) while still respecting the implementor's objections. |
With all due respect, Chromium browsers are doing just fine with their approach that allows the width to be a custom value. I think there's a huge accessibility issue by not allowing the width to be widened, since on Mac and most Linux distributions, there's virtually no difference between thin and auto. This is detrimental for users with certain accessibility needs, as it's a pretty small target to hit. At the very least, there needs to be another option added that's simply "wide" and is displayed at about 15px wide. The current "auto" option is inconsistent between platform. Having a "wide" option that's a standardized size (much like "thin") would perhaps be a better compromise to allowing custom width. Having a project that works directly with the scrollbars, I can say that the lack of support for custom widths (or even consistent widths) is a complaint I get on a nearly daily basis. I sincerely think that W3C's approach on this issue should be re-evaluated. |
@WesleyBranton I think you may find more headway petitioning specific vendor engineers? Maybe here's a good place to start? #1958 (comment) Also, you might find this discourse around custom scrollbars worthwhile? #1960 (comment) |
Wouldn't this bring users more privacy? Since the size of the scroolbar is identifiable of the browser being used? |
Note that W3C isn't making up its own approach, independently of or against the wishes of Chromium browser engineers. W3C is a venue for discussing things, not a source of opinions, and those expressing this position are the engineers working on Chromium (and other browsers). |
Whoever needs to read this - somebody needs to listen to the users. The small scollbars are very difficult to use. Please do something to make them wider. |
This might be of interest. It worked for me. https://www.askvg.com/tip-restore-full-classic-scrollbars-in-mozilla-firefox-on-windows-11/ |
I am one of the users of scrollbar add-ons / user style sheets and also a developer with some focus on usability. My main point is: This also means, the width (and also the min length of the thumb) should be under control of the user, just like the font size. Important: Unlike Buttons on a web page, the scrollbars don't zoom! If scrollbar-width can't be specified in units, it's not possible to override the width by a user style sheet or an add-on or a browser setting. Adding it would
which means both worlds are happy like it is for fonts and similar elements. Instead now, it's inconvenient for both parties. Also, scrollbar-width simply doesn't follow other width specifications. It's kind of non-standard in my opinion. If I read "width" I shouldn't have to read a document to set one. I don't see any good reason against it. Especially this one is kind of weird (meant in the direction of browser implementors, thanks to @tabatkins for telling us):
It's quite similar to the situation for fonts or buttons or anything else. It's not a new thing that some css properties cannot be fully supported and are replaced by something near to it or even stay fixed. That's especially a no-brainer for scrollbars, they usually don't disturb website layout. Please do something for users this time. Websites are already creating their own scrollbar implementations (I think some do it on user demand, because thin might be looking fancy, but usability is bad) and this creates even more diversity, which is the opposite of a standard. |
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.
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.
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. |
This is an accessibility issue and a usability issue in one. It's very difficult to mouse into that minuscule scrollbar, period. |
Not being able to change scrollbar width is a constant source of irritation for me. |
Your telemetry should tell you that no one uses scrollbars because they are impossible to use. I have poor eyesight and need bigger/wider scrollbars so that they are even usable. It's so frustrating to try to work the current scrollbars in Firefox. |
I'm not certain why you'd believe that.
Again, this is not an argument for pages being able to control the width of their own scrollbars, but rather for browsers to give their users the ability to control scrollbar widths on every page, the same way users are currently allowed to set default fonts and font sizes. If we added the ability for scrollbar-width to take a custom measurement, that would not help you in any material way, as the vast majority of sites wouldn't set it. |
File bugs in your preferred browser's bug tracker; we just help browsers do CSS the same, but otherwise have no control over their internal features. |
you're on the wrong track... Browsers have the same 80/20 problem like standards or operating systems. They usually only do what "most" of the users use or want or whatever. Basically they don't have time or motivation or whatever to add the missing 20%. So it's very important, that we - the users - can do something by ourselves. There are enough developers among those users that can write extensions to browsers or userstyle userchrome.css or usercontent.css etc. BUT, if the necessary css attributes are not available, it's impossible to do at all. We can only override something with !important, if it does exists or the desired value is possible. PLEASE...do not redirect us to someone else, but solve our problem instead. There are plenty of examples where this works very well. The real power of CSS lies in it's selector rules, which allow to override looks and behavior and gives users the last word with !important (if implemented correctly, that is browser !important has priority over web site !important, which they should never do, but some devs don't care) |
+1 on scrollbar width customization. |
i am disabled and i do have problems with that tiny scrollbar. there is an extension for making it visible (by setting colours that i can actually discern), which only does 1/4 of the job because most websites override the setting and even when they don’t, it’s still just too thin to see properly and also too thin to comfortably grab and operate it, especially if i have the browser window on the left screen. what abled people think of as “pretty” is what ruin’s disabled people’s day |
the usual autohide and tiny size scrollbar is generally not designed to grab it, it's designed to see something when scrolling with a mouse wheel or when swiping on touch displays. Instead I use the scrollbar to drag it to a certain position. I already lost all hopes that UI designers will ever think of this use case. They simply don't give a shit about it. The possibility to override something is very important for those 20% that are not considered in this 80/20 world (to remember, I grew up with the goal to do things 100%). And we can only override something that exists. |
I guess if it's closed, nobody reads it? are we talking to ourselves here? |
I am feeling that many of the people aren't using peripherals right way when they have to drag scrollbar by clicking over it. |
a scrollbar allows directly dragging to a certain position, instead of incremental scrolling. It's provides spatial orientation. Maybe you never used a very long page, where scrolling with a mouse wheel or similar takes quite long. If you have a fast computer and less complex or cached content you can even drag much faster (10-100x) than with incremental methods, while still seeing the content. |
Okaay... I got your point, and I guess then this problem is not even a problem. Let's say you want to go to the middle of the page, just take your mouse to the right edge of your screen and just click in the middle of the screen on the right most edge. Your scrollbar will jump to middle, and you can do the same for the whole length. You are not required to grab that miniscule scrollbar! |
You didn't get the point, just clicking in the tiny scrollbar is difficult for many. That it doesn't affect your use case doesn't mean it's wrong, it means you don't have skin in this game and your opinion can safely be ignored. |
so you are a full screen guy... my screen is 42" and it doesn't make sense to only have one window, in fact I have more like ten open and can see them all additionally I have window borders and need them because of the same reasons, even with full screen windows I would grab the window border |
I can't use firefox for one reason only - lack of custom scrollbars. Why? |
Firefox does have custom-sized scrollbars. Type This repository is not the appropriate place to request end-user features (or help) for browsers. We are discussing here features aimed at web page authors. |
this actually seems to help on Firefox as far as I see (so thanks, because I mainly use firefox and did not know it, I'm sure I search for scrollbar when this thread started). Apart from Firefox, the main problem we discuss here, is the case when browsers or OSes do not override all possible scroll bars, then the only way to solve this, is to set the width with important or modify it via javascript. This is only possible if the value exists. Users that use different OSes and/or browsers are very interested in a solution that can be used on all of them. |
As it was pointed out earlier in this issue, implementers object to add a way to set arbitrary scrollbar widths. Therefore, in #10650 I suggest to add at least a Sebastian |
different situations need different sizes. Think of someone using the foot vs. a 90 year old person, it mostly depends on vision and motion capabilities. E.g. take me, as a software developer, I have a 43" Monitor with very small fonts, but I like to scroll with scrollbars, because it's faster and you can move the thumb directly to a target position (and I have content summary bars beneath scroll bars, e.g. the text itself, with git status etc.). I know an old guy who has good vision, but got some trembling hands, which make it difficult to grab something smaller. He also doesn't like to scroll with a mouse wheel, he would constantly swipe pages up and down. Some people suggest to zoom the whole screen, but he says he isn't blind. I could add quite a few more examples... |
Note that I am not an implementer and I wouldn't object to custom measurements for scrollbars. Though I understand the reasoning behind the objection. It is a user preference how thick the scrollbars should be, not a website author preference. Therefore, it's the operating system's and/or user agent's responsibility to provide a way to customize the width of the scrollbars. The suggestion in #10650 is meant to provide a way to indicate that the scrollbars should be thick enough in case the OS and UA don't provide a way to customize their thickness. Sebastian |
I know that you are not an implementer. I'm not sure if it is a 100% user preference. For me it's also an orthogonality thing. I mostly have normal scrollbars, but there are also scrollbars that only indicate a position, without the need to handle them. Those I want to be much smaller (depending only on vision capabilities, not motion capabilities), this is the "thin" case. Well, I guess nobody that can change something is reading this closed issue. |
A big +1 for me on this request, in particular as a way to support accessibility as already said. |
I can't believe that Mozilla is resisting on this issue at all. Literally unbelievable. It is such an open-shut case from the W3C perspective. Why did they break it in the first place "way back when"? |
SPEC: https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width
The current spec only allows
auto
,thin
andnone
for thescrollbar-width
CSS property. The property should also support custom measurements in regular size units (px, pt, em, vw, ...).Since the
auto
width is decided by the operating system and some operating systems do not provide a way for the user to adjust the appearance of the scrollbars (or at least have that ability hidden in some more tech-savvy area). The consequence of this is that if your OS has very thin scrollbars, there's no way to increase the width of the bars using CSS. This could be detrimental to users with certain accessibility issues.My add-on Custom Scrollbars regularly receives email complaints about this ability not being available. The spec that Chromium-based browsers are using supports custom measurement units.
The text was updated successfully, but these errors were encountered: