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
First attempts to match the <adata-link-type=dfnhref=#grid-areatitle="grid area">grid area</a>’s edge to a <adata-link-type=dfnhref=#named-grid-areatitle="named grid area">named grid area</a>:
2168
+
First attempt to match the <adata-link-type=dfnhref=#grid-areatitle="grid area">grid area</a>’s edge to a <adata-link-type=dfnhref=#named-grid-areatitle="named grid area">named grid area</a>:
2169
2169
if there is a <adata-link-type=dfnhref=#named-linetitle="named line">named line</a> with the name ''<aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#identifier-valuetitle="<custom-ident>"><custom-ident></a>-start<spanclass=cssdata-link-type=maybetitle=" (for grid-*-start) / "> (for <aclass=propertydata-link-type=propdesctitle=grid-*-start>grid-*-start</a>) / </span><aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#identifier-valuetitle="<custom-ident>"><custom-ident></a>-end'' (for <aclass=propertydata-link-type=propdesctitle=grid-*-end>grid-*-end</a>),
2170
2170
contributes the first such line to the <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a>’s <adata-link-type=dfnhref=#grid-placementtitle=placement>placement</a>.
2171
2171
2172
2172
<pclass=note>Note: <adata-link-type=dfnhref=#named-grid-areatitle="named grid areas">Named grid areas</a> automatically generate <adata-link-type=dfnhref=#implicit-named-linetitle="implicit named lines">implicit named lines</a> of this form,
2173
2173
so specifying <aclass=cssdata-link-type=propdeschref=#propdef-grid-row-starttitle=grid-row-start>grid-row-start: foo</a> will choose the start edge of that <adata-link-type=dfnhref=#named-grid-areatitle="named grid area">named grid area</a>
2174
2174
(unless another line named <spanclass=cssdata-link-type=maybetitle=foo-start>foo-start</span> was explicitly specified before it).</p>
2175
2175
2176
-
<p>Otherwise, if there is a <adata-link-type=dfnhref=#named-linetitle="named line">named line</a> with the specified name,
2177
-
contributes the first such line to the <adata-link-type=dfnhref=#grid-itemtitle="grid item">grid item</a>’s <adata-link-type=dfnhref=#grid-placementtitle=placement>placement</a>.</p>
2178
-
2179
2176
<p>Otherwise,
2180
-
the property contributes nothing (just as if <aclass=css-codedata-link-for="<grid-line>" data-link-type=valuehref=#grid-placement-autotitle=auto>auto</a> were specified).</p>
2177
+
treat this as if the integer <spanclass=cssdata-link-type=maybetitle=1>1</span> had been specified along with the <a <
CB92
/span>class="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#identifier-valuetitle="<custom-ident>"><custom-ident></a>.</p>
<p>If a name is given as a <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#identifier-valuetitle="<custom-ident>"><custom-ident></a>,
2190
2187
only lines with that name are counted.
2191
-
(If no line with that name exists,
2192
-
it instead specifies the first grid line;
2193
-
or the last, if the <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-integertitle="<integer>"><integer></a> is negative.
2194
-
If not enough lines of that name exist,
2195
-
it specifies the <em>last</em> such named line;
2196
-
or the first, if the <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-integertitle="<integer>"><integer></a> is negative.)</p>
2188
+
If not enough lines with that name exist,
2189
+
all lines in the implicit grid are assumed to have that name for the purpose of finding this position.</p>
2197
2190
2198
2191
<p>A <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-integertitle="<integer>"><integer></a> value of zero makes the declaration invalid.</p>
<p>If a name is given as a <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#identifier-valuetitle="<custom-ident>"><custom-ident></a>,
2206
2199
only lines with that name are counted.
2207
-
(If no line with that name exists,
2208
-
the name is ignored.
2209
-
If not enough lines of that name exist,
2210
-
it spans to the last such named line in the spanning direction.)</p>
2200
+
If not enough lines with that name exist,
2201
+
all lines in the implicit grid are assumed to have that name for the purpose of counting this span.</p>
2211
2202
2212
2203
<p>If the <aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-syntax-3/#typedef-integertitle="<integer>"><integer></a> is omitted, it defaults to <spanclass=cssdata-link-type=maybetitle=1>1</span>.
0 commit comments