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][css-scrollbars-1] What about a pseudo-element? #4547

Closed
Cadienvan opened this issue Nov 28, 2019 · 2 comments
Closed

[css-scrollbars][css-scrollbars-1] What about a pseudo-element? #4547

Cadienvan opened this issue Nov 28, 2019 · 2 comments

Comments

@Cadienvan
Copy link

https://drafts.csswg.org/css-scrollbars-1/

It's my first time posting an issue here so sorry if I'm doing something wrong.

In my opinion, scrollbars are pretty important and have been a really big issue for us developers for a long time. I just saw this spec for the 1st time and wondered: "Why is this spec related to container element properties? Isn't it better to push it as a new pseudo-element, following the ::-webkit-scrollbar non-standard spec?"
In that way, we could achieve cleaner code such as:

::scroll-bar{
  ...my style
}

instead of styling our scrollbars in every single element with the universal selector *.

As I see this spec is already in stage 1, I wonder if such a discussion has already taken place and, if it did, why did the csswg go in the properties direction.

@Cadienvan
Copy link
Author

Thank you. I'll start by closing this one and think about how to properly write my thoughts in a clear comment.

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

No branches or pull requests

2 participants