Skip to content
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-1] ability to explicitly request normal scrollbars #9169

Closed
lukewarlow opened this issue Aug 6, 2023 · 2 comments
Closed
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. css-scrollbars-1 Current Work Testing Unnecessary Memory aid - issue doesn't require tests

Comments

@lukewarlow
Copy link
Member

lukewarlow commented Aug 6, 2023

This request will refer to non standard CSS so feel free to disregard if it's not really applicable to the standard.

Recently a bug report came up in WebKit.
The report stated that there's no way to undo ::-webkit-scrollbar { display: none } which is true in both WebKit and Chromium.

That got me thinking, the way that these properties are being implemented in WebKit and Chromium is such that an auto value will result in custom ::-webkit-scrollbar styles being applied, but a non-auto value will disable them.

The spec explicitly calls out a CSS override that users can use should they want normal scrollbars as below. However, this won't have the desired effect if custom ::-webkit-scrollbars are applied.

Is this something that should be addressed by this spec? Or is this just an unfortunate state that can't really be fixed.

Note: Users who find the thin style of scrollbars unusable can include the following rule in their user style sheet:
* { scrollbar-width: auto !important; }
This will ensure that all scrollbars are sized as per OS and UA settings regardless of author styles.

@lukewarlow lukewarlow changed the title [css-scrollbars [css-scrollbars] ability to explicitly request normal scrollbars Aug 6, 2023
@lukewarlow
Copy link
Member Author

At the very least it's probably worth calling out that the legacy styles won't be override by that code snippet in that final line?

@lukewarlow lukewarlow changed the title [css-scrollbars] ability to explicitly request normal scrollbars [css-scrollbars-1] ability to explicitly request normal scrollbars Oct 23, 2023
@svgeesus svgeesus added the css-scrollbars-1 Current Work label Oct 23, 2023
@fantasai fantasai added the Agenda+ Later Lower-priority items that are flagged for CSSWG discussion label Dec 7, 2023
@frivoal
Copy link
Collaborator

frivoal commented Jan 25, 2024

As discussed in https://drafts.csswg.org/css-scrollbars/#out-of-scope

Exposing the scrollbar-related ::-webkit- prefixed pseudo-elements to the Web is considered a mistake by both the CSS Working Group and Webkit.

So the spec is neither defining how it works, nor how to work around it. If we did spec it, I agree with you that making sure it can be overridden would be good, but it's explicitly out of scope, which I think makes this issue non actionable.

Further, while it's unclear how fast this is going to happen, browser vendors have indicated an interest in gradually retiring the scrollbar related ::-webkit-* pseudos.

See https://drafts.csswg.org/css-scrollbars/#out-of-scope and #1969 (comment) for some more explanation about why we're not specifying these pseudos.

With that in mind, I think we should close this issue as out of scope.

@frivoal frivoal added Agenda+ Commenter Response Pending and removed Agenda+ Later Lower-priority items that are flagged for CSSWG discussion labels Jan 25, 2024
@frivoal frivoal added Closed as Retracted When the person who raised the issue thinks that there's no issue after all. Testing Unnecessary Memory aid - issue doesn't require tests and removed Agenda+ Commenter Response Pending labels Jan 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Closed as Retracted When the person who raised the issue thinks that there's no issue after all. css-scrollbars-1 Current Work Testing Unnecessary Memory aid - issue doesn't require tests
Projects
None yet
Development

No branches or pull requests

4 participants