Skip to content

[css-grid] Stretching Fixed-size Tracks #320

@fantasai

Description

@fantasai

So I was just adding more examples to the Grid spec, and I think we should revisit the decision of which tracks 'align/justify-content: stretch' applies to. Currently it only applies to auto-sized (i.e. content-sized) tracks. However, I do expect something like

  grid-template-columns: repeat(auto-fill, 5em);
  justify-content: [whatever]

to be a common use case, and the fact that all the alignment values except stretch have their intended effect, and can be easily switched among, seems odd.

In contrast, I expect wanting content-sized items to be stretched while fixed-size tracks in the same grid are not, to be a less common case. In any case, thoughts on this point?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions