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
<p>The <aclass="css" data-link-type="maybe" href="#funcdef-repeat">repeat()</a> notation represents a repeated fragment of the <adata-link-type="dfn" href="#track-list">track list</a>.
2282
-
This is just a syntactic shorthand that allows
2283
-
writing a large number of columns or rows that exhibit a recurring pattern
2284
-
in a more compact form.
2281
+
<p>The <aclass="css" data-link-type="maybe" href="#funcdef-repeat">repeat()</a> notation represents a repeated fragment of the <adata-link-type="dfn" href="#track-list">track list</a>,
2282
+
allowing a large number of columns or rows that exhibit a recurring pattern
2283
+
to be written in a more compact form.
2285
2284
The syntax of the <aclass="css" data-link-type="maybe" href="#funcdef-repeat">repeat()</a> notation is:</p>
<p>If the number of repetitions is <dfnclass="css" data-dfn-for="repeat()" data-dfn-type="value" data-export="" id="valdef-repeat-auto">auto<aclass="self-link" href="#valdef-repeat-auto"></a></dfn>
2303
+
and the <adata-link-type="dfn" href="#grid-container">grid container</a> has a definite size in the relevant axis,
2304
+
then the number of repetitions is the largest possible integer
2305
+
that does not cause the <adata-link-type="dfn" href="#grid">grid</a> to overflow its <adata-link-type="dfn" href="#grid-container">grid container</a>
2306
+
(treating all tracks as their <adata-link-type="dfn" href="#max-track-sizing-function">max track sizing function</a> if that is <adata-link-type="dfn" href="http://dev.w3.org/csswg/css-sizing-3/#definite">definite</a> or as zero otherwise).
2307
+
Otherwise, the <adata-link-type="dfn" href="#track-list">track list</a> repeats only once.
2308
+
A <aclass="production css" data-link-type="type" href="#typedef-track-list"><track-list></a> with more than one <aclass="css" data-link-for="repeat()" data-link-type="maybe" href="#valdef-repeat-auto">auto</a><aclass="css" data-link-type="maybe" href="#funcdef-repeat">repeat()</a> function is invalid.</p>
2309
+
2310
+
2300
2311
2301
2312
<divclass="example">
2302
2313
This example shows two equivalent ways of writing the same grid definition.
0 commit comments