Skip to content

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

Closed
@frivoal

Description

@frivoal

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.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions