-
Notifications
You must be signed in to change notification settings - Fork 74
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 scrollbar-gutter #488
Comments
I think this property should not affect Also are we sure we want gutters when overlay scrollbars are in effect? At least on mac and android the overlay scrollbars are auto-disappearing, so I'm confused about when forcing a gutter to appear would be useful. |
w3c/csswg-drafts#6028 for the |
Thank you very much for your feedback @emilio The main use case for the This is a quick example where I have used The That last example was taken from this comment by @frivoal, which provides a far more detailed explanation: w3c/csswg-drafts#4674 (comment)
|
But what scrollbar width do you use for the gutter? The |
As in, if it applies to |
According to the spec, the same rules apply to You raise a very good point regarding the size of scrollbar gutters. In Chromium, it is straightforward to take the size of the scrollbar gutter from the current theme because all the scrollbars in the page have the same thickness. However, in Firefox this is not the case because it already implements the IMHO, it would be reasonable to let |
In WebKit / Blink it doesn't seem straight-forward either? Those browsers support |
(and you raise a good point, I had overlooked that the spec also mentioned |
This is how the "hypothetical" scrollbar thickness for an element is calculated in Chromium:
(This logic was already in place when I started working on scrollbar-gutter.) |
I have added several examples to the scrollbar-gutter explainer: https://github.com/felipeerias/scrollbar-gutter-explainer#examples These should run well in Chrome after enabling the "Experimental Web Platform features" in For convenience, I have also added screenshots for each one when using fixed and overlay scrollbars. |
I would like to request an updated position on The initial concerns with The updated spec can be summarized as follows:
References and meeting minutes:
Thank you so much. |
@felipeerias to be clear, But yeah, I'm pretty happy with the result of all those discussions in the working group, and I think the new spec is pretty reasonable. Thanks for pushing this forward Felipe! |
@emilio Yes, the implementation follows the standard. Thank you very much for your valuable feedback! |
Request for Mozilla Position on an Emerging Web Specification
scrollbar-gutter
Other information
The scrollbar-gutter CSS property provides control over the presence of scrollbar gutters (the space which may be reserved to display a scrollbar).
This gives Web authors more agency over how their layouts interact with the scrollbars provided by the browser, so they can e.g. prevent excessive layout changes as content expands while avoiding unwanted visuals when scrolling isn't needed.
The text was updated successfully, but these errors were encountered: