Skip to content

[css-grid] What happens with grid line names when dropping tracks #172

@svillar

Description

@svillar

The specs mention that when using auto-fit, tracks with empty repetitions are dropped. My question is what happens with the grid line names defined in the repeat() function?

As far as I see it we have 2 options
a. we "collapse" them with other potential line names defined outside the repeat()
b. we remove them as we do with tracks

IMO (a) is not the right thing to do due to several reasons. First of all it seems weird to keep the line names and not the tracks. Secondly, we could lead to having only grid line names and no tracks in a definition (for example, grid-template-rows: [a] repeat(auto-fit,[b] 10px [c]) [d]; assuming there are no items then grid-template-rows will become [a b c d] without tracks which is invalid BTW). And last but not least I really don't see any use case for that.

So my proposal is that the spec explicitly mentions (b).

WDYT?

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions