-
Notifications
You must be signed in to change notification settings - Fork 27
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
scrollbar-width CSS property #571
Comments
I am in full support of a standardised property across browsers here. However, I would like to suggest this effort should be accompanied by an additional The For greater interop, it would make a lot of sense to have the A client project I am working on heavily uses data tables that are scrollable. On Chrome/Safari we can show highly-visible wide scrollbars that are easy to find, but on Firefox we are left with a scrollbar that contrasts nicely thanks to To go further, it would be even more beneficial to allow for a |
Requests for extra values are better placed in the csswg. This is just about implementing the existing spec. Having said that requests for a wide/thick option have been filed before and have been mostly shut down from what I can see. That's not to say don't bother just to temper expectations. I for one think a thick value would be valuable. Especially when viewed in the context of lowering |
@lukewarlow You're absolutely right, and I do apologise for my rambling. It felt worth mentioning, since if we're considering having other browsers be spec-compliant, many authors might not use it due to lack of sizing options, so the incentive to change would be low, and the webkit pseudos usage would stay high. |
@chriskirknielsen w3c/csswg-drafts#6351 is the original issue requesting wide option. If you do open a new one it's worth giving this a read to see if you can come up with any arguments that have not already been made (the pseudo replacement might be just that) w3c/csswg-drafts#6263 - is an example of another requesting |
On that topic and again while the CSSWG is the venue for this it seems worth bringing up here. w3c/csswg-drafts#9169 - Currently there's no way for a site author (or user through user stylesheets) to force a "normal" width scrollbar. Due to the "auto" value defering to legacy |
Would like to point out that iOS no longer respects the WebKit prefixed selectors either. It's currently not possible in CSS to force a scroll bar to show in iOS. |
Not a feature I'd consider a priority. I've tried it and to say I was very unhappy with it would be a massive understatement. At this point, the standard solution is very much lacking, so I'm sticking to a custom JS solution (something I was afraid to go for at first, but after looking at a few implementations, decided rolling my own is something I can do) or, if support doesn't need to go deeper than that, just using the WebKit pseudos. |
Chromium intent to ship: https://groups.google.com/a/chromium.org/g/blink-dev/c/PkEsMirl2zE/m/ArphSa39AAAJ |
Thank you for proposing scrollbar-width CSS property for inclusion in Interop 2024. We are pleased to let you know that this proposal was accepted as part of the Scrollbar Styling focus area. You can follow the progress of this focus area on the Interop 2024 dashboard. For an overview of our process, see the proposal selection. Thank you for contributing to Interop 2024! Posted on behalf of the Interop team. |
Description
(Copied from #417)
Developers need a standard and cross-browser solution to style scrollbars for elements with overflow: scroll;.
There are two alternatives to style scrollbars, the widely supported non-standard ::-webkit-scrollbar-* pseudo-elements or the new standard scrollbar-* properties defined in the CSS Scrollbars Styling Module spec. Both alternatives are not cross-browser supported.
The non-standard ::-webkit-scrollbar-* pseudo-elements supported by all browsers except Firefox. While scrollbar-width and scrollbar-color properties are supported only by Firefox.
This is not an optimal situation for developers. We need a single solution implemented by all browsers.
Specification
https://drafts.csswg.org/css-scrollbars/#scrollbar-width
Open Issues
No response
Tests
https://wpt.fyi/results/css/css-scrollbars?label=master&label=experimental&aligned
Current Implementations
Standards Positions
WebKit/standards-positions#133
Browser bug reports
No response
Developer discussions
No response
Polls & Surveys
Scrollbar Styling is also a common answer in https://2023.stateofcss.com/en-US/usage/#css_interoperability_features, and in https://2022.stateofcss.com/en-US/usage/#interoperability_features_freeform before that.
Existing Usage
No response
Workarounds
No response
Accessibility Impact
No response
Privacy Impact
No response
Other
No response
The text was updated successfully, but these errors were encountered: