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

fix: bare-minimum scrollbar not working on Chrome 121+ (#10) #11

Merged
merged 1 commit into from
Nov 26, 2024

Conversation

kabeep
Copy link
Contributor

@kabeep kabeep commented Nov 18, 2024

No description provided.

}
*::-webkit-scrollbar-track {
background: none;
@supports not selector(::-webkit-scrollbar) {
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Isn't it best to use @supports (scrollbar-width: auto)?

Like in that example: https://developer.chrome.com/docs/css-ui/scrollbar-styling#supporting_older_browser_versions

Or would that not overwrite the styles correctly.

Copy link
Contributor Author

@kabeep kabeep Nov 21, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yep, that won't correctly override the styles.

If both are present, scrollbar-* will invalidate all --webkit-scrollbar-* properties in Chrome 121+.

However, the CSS Scrollbars Styling Module Level 1 currently does not support the scrollbar-button.
https://drafts.csswg.org/css-scrollbars/#buttons

@dmnsgn dmnsgn merged commit efec4b2 into dmnsgn:main Nov 26, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants