Skip to content

[css-grid] Ability to clamp track spanning #5852

@MikeMatusz

Description

@MikeMatusz

Currently, if any element spans multiple columns when using auto-fill, the grid is incapable of gracefully handling sizing below that amount of columns. The extra columns get squished, as demonstrated in the following example:
css-grid-auto-fill-span

Using a syntax like span-minmax(1, 3) to clamp the spanning (as proposed by @MatsPalmgren here) would allow the grid to be fully responsive.

One such use case mentioned on that issue is:

  • Have "featured" items span multiple columns, but only when the columns become available

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