Skip to content

[css-grid] grid-auto-flow: normal for display: grid? #13512

@fantasai

Description

@fantasai

In Grid Level 3, we added a new initial behavior: if grid-template-rows is set but grid-template-columns is not (i.e. is none), then we interpret the rows as fixed tracks and grow in the inline direction.

Can we do this to display: grid also? Like, is there content out there in the wild where grid-template-rows is set, grid-template-columns is not, and grid-auto-flow is still its initial value, where making this change would conceivably break content?

Because if not... it would be a really smooth and nice author experience to have this create a sideways-growing grid, same as it creates a sideways-growing grid-lanes layout:

display: grid;
grid-template-rows: repeat(auto-fill, 100px);

CC @bfgeek @tabatkins

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