-
Notifications
You must be signed in to change notification settings - Fork 694
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] Rename scrollbar-width
to scrollbar-thickness
#2966
Comments
scrollbar-width
to scrollbar-thickness
scrollbar-width
to scrollbar-thickness
While I don't think |
I originally thought of size, but then I thought size also sounds like a scrollbar's inner size, in other words, sounds like the size in the scroll direction. Thickness seems less likely to mean that(this is just my personal sense on the two words. However, I am not a native speaker, ). |
But I still prefer size to width. width is no less ambiguous than size, since size is at least more direction-neutual. |
|
Thanks for the referencing the quote, @jonjohnjohnson . There are also properties such as Also, I personally don't have a strong opinion on using thickness, just perfer a direction-neutual word, if we are worried about naming convention, at least the word |
And further, there's one other thing to be considered: Maybe some day we may also eventually want to provide ability to control the length of a scrollbar's inner length(the one perpendicular to "width"), so at an early age, the room for naming of the future property may also be considered. Had we already used |
Is there a reason why I don't know any other CSS property that uses it, but it also sounds better than |
In addition to the reasons discussed above, this is no longer practical to change, since it has been shipping for a while in Firefox with the |
https://drafts.csswg.org/css-scrollbars-1/#scrollbar-width
As a scrollbar width only sounds like the thickness of a vertical scrollbar. For a horizontal scrollbar, the meaning of width doesn't seem very clear, the bar thickness is more likely called height of a horizontal scrollbar.
Thickness is just a direction-neutual word. So what about renaming
scrollbar-width
toscrollbar-thickness
?The text was updated successfully, but these errors were encountered: