Skip to content

[css-overflow-4] subgrid obviates the need for scrollbar-gutter: force #9815

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

Closed
frivoal opened this issue Jan 18, 2024 · 1 comment
Closed

Comments

@frivoal
Copy link
Collaborator

frivoal commented Jan 18, 2024

scrollbar-gutter: force was proposed to reserve the same amount of space in a non scrolling element as the gutter would in an adjacent scrolling element, for the purpose of lining things up visually. See example 15 in the spec. However, this value has been controversial, for a variety of reasons, some listed in the spec, such as issue 45 or issue 46.

I think subgrid solves the same problem, in a much more robust manner, and we can therefore drop the proposal for scrollbar-gutter: force.
Here's a little bit of sample code demonstrating it:
http://software.hixie.ch/utilities/js/live-dom-viewer/?saved=12282

Overlay scrollbarsClassic scrollbarsClassic scrollbars with overflow:auto and no overflow

Everything aligns just as you'd want, regardless of overlay vs classic, overflow or not, scrollbar gutter or not…

So, since the use case that scrollbar-gutter: force was meant for looks solved, I propose we drop it.

@css-meeting-bot
Copy link
Member

The CSS Working Group just discussed [css-overflow-4] subgrid obviates the need for `scrollbar-gutter: force` , and agreed to the following:

  • RESOLVED: Drop scrollbar-gutter: force
The full IRC log of that discussion <Frances> Florian: scrollbar-gutter: force value would be the same gutter in an element that doesn't scroll at all. A scroller and right next to the scroller a toolbar of some kind. If you have a scrollbar or a gutter that consumes space to the right, the same amount of space could visually line things up.
<astearns> +1 to removing the value
<Frances> Florian: grid and sub grid are good at aligning things to take into account the width, we can drop this property.
<bkardell_> I support closing an issue / removing an ask (for the record)
<Frances> Rossen: Any objections?
<Frances> PROPOSAL: Drop scrollbar-gutter: force
<Frances> RESOLVED: Drop scrollbar-gutter: force

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants