Skip to content

[css-overflow-4] defaults for scrollbar-gutter in the block axis #5252

@frivoal

Description

@frivoal

https://drafts.csswg.org/css-overflow-4/#scrollbar-gutter-property says:

The presence of a scrollbar gutter at the block start edge and block end edge of the box cannot be controlled in this level, and is determined the same way as the presence of scrollbar gutters placed at the inline start edge or inline end edge of the box when scrollbar-gutter is auto.

We could later, if we wanted to, expand the scrollbar-gutter property to take a second value that describes the block start / block end gutters, and which defaults to auto when omitted.

However, this means were deciding now that the default is auto. Maybe that's fine. But also, auto is the default only because legacy behavior, not because it's better. So the default could also be (for example) auto if the first value is auto but stable otherwise. Or maybe something else.

The point is, if what we're defining now is the shorthand, we have to decide now what the default in the other axis is.

If we don't want to make that decision now, we could just define scrollbar-inline-gutter and worry later about what the other axis later defaults to when you omit it from the shorthand.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions