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

gitspeaks has just created a new issue for https://github.com/w3c/csswg-drafts:

== [css-grid-2] Clarify meaning of "one grid line in each axis" ==
I'm confused by this line from [7.1. The Explicit Grid](https://drafts.csswg.org/css-grid-2/#explicit-grids):

> "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](https://drafts.csswg.org/css-grid-2/#explicit-grid) is determined by the larger of the number of rows/columns defined by [grid-template-areas](https://drafts.csswg.org/css-grid-2/#propdef-grid-template-areas) and the number of rows/columns sized by [grid-template-rows](https://drafts.csswg.org/css-grid-2/#propdef-grid-template-rows)/[grid-template-columns](https://drafts.csswg.org/css-grid-2/#propdef-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](https://drafts.csswg.org/css-grid-2/#propdef-grid-auto-rows)/[grid-auto-columns](https://drafts.csswg.org/css-grid-2/#propdef-grid-auto-columns) properties. If these properties don’t define any explicit tracks the explicit grid still contains one [grid line](https://drafts.csswg.org/css-grid-2/#grid-line) in each axis.

Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/11861 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Friday, 7 March 2025 01:03:32 UTC