You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If a name is given as a <custom-ident>, only lines with that name are counted. If not enough lines with that name exist, all implicit grid lines are assumed to have that name for the purpose of finding this position.
There is no explicit line called foo, so grid-column-start: foo 1 should resolve to the 1st trailing implicit line. But, which one is the 1st one? According to https://drafts.csswg.org/css-grid/#implicit-grids,
The grid-template-rows, grid-template-columns, and grid-template-areas properties define a fixed number of tracks that form the explicit grid. When grid items are positioned outside of these bounds, the grid container generates implicit grid tracks by adding implicit grid lines to the grid.
So if there are n > 0 tracks in the explicit grid, then it's easy: the explicit grid is delimited by lines 1 and n+1, so the 1st trailing implicit line is the n+2.
A grid line exists on either side of a column or row.
So if there is no explicit column, it wouldn't be unreasonable to think that there is no explicit line. That is, creating the 1st trailing implicit track would add two implicit lines, 1 and 2. Then, line 1 would be implicit.
However, we have interoperability that the 1st trailing implicit line is 2, not 1. I think this is good, just substitute n = 0 into the n+2 formula above, no need to special case n = 0.
So I think it should be clarified that line 1 (and -1) is never implicit, even if the explicit grid is empty. Or that line is 1 not considered to have all names.
The text was updated successfully, but these errors were encountered:
Consider https://software.hixie.ch/utilities/js/live-dom-viewer/saved/8137
According to https://drafts.csswg.org/css-grid/#grid-placement-int,
There is no explicit line called
foo
, sogrid-column-start: foo 1
should resolve to the 1st trailing implicit line. But, which one is the 1st one? According to https://drafts.csswg.org/css-grid/#implicit-grids,So if there are
n > 0
tracks in the explicit grid, then it's easy: the explicit grid is delimited by lines1
andn+1
, so the 1st trailing implicit line is then+2
.But in this case we don't have any explicit column, i.e. we have
n = 0
. From https://drafts.csswg.org/css-grid/#grid-line-concept,So if there is no explicit column, it wouldn't be unreasonable to think that there is no explicit line. That is, creating the 1st trailing implicit track would add two implicit lines,
1
and2
. Then, line1
would be implicit.However, we have interoperability that the 1st trailing implicit line is
2
, not1
. I think this is good, just substituten = 0
into then+2
formula above, no need to special casen = 0
.So I think it should be clarified that line
1
(and-1
) is never implicit, even if the explicit grid is empty. Or that lineis 1
not considered to have all names.The text was updated successfully, but these errors were encountered: