Skip to content

[css-grid-2] Clarify meaning of "one grid line in each axis" #11861

Closed
@gitspeaks

Description

@gitspeaks

I'm confused by this line from 7.1. The Explicit Grid:

"If these properties don’t define any explicit tracks, the explicit grid still contains one grid line in each axis."

Since tracks are spaces between two grid lines, having only one line per axis wouldn't form any tracks at all. Can someone explain what the spec means here?

The full paragraph from the spec:

The size of the explicit grid is determined by the larger of the number of rows/columns defined by grid-template-areas and the number of rows/columns sized by grid-template-rows/grid-template-columns. Any rows/columns defined by grid-template-areas but not sized by grid-template-rows/grid-template-columns take their size from the grid-auto-rows/grid-auto-columns properties. If these properties don’t define any explicit tracks the explicit grid still contains one grid line in each axis.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Closed as Question AnsweredUsed when the issue is more of a question than a problem, and it's been answered.css-grid-2Subgrid; Current Work

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions