Skip to content

Commit 999b25f

Browse files
committed
[css-grid] Make auto-repeats their own subsection, add more restrictions, mark issue.
1 parent 10e10e8 commit 999b25f

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

css-grid/Overview.bs

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1175,8 +1175,11 @@ Repeating Rows and Columns: the ''repeat()'' notation</h4>
11751175
the name lists are merged.
11761176
For example, ''repeat(2, [a] 1fr [b])'' is equivalent to ''[a] 1fr [b a] 1fr [b]''.
11771177

1178-
<h4 id="repeat-auto">
1179-
Repeat-to-fill</h4>
1178+
<h5 id="repeat-auto">
1179+
Repeat-to-fill</h5>
1180+
1181+
Issue: We're trying to solve <a href="https://lists.w3.org/Archives/Public/www-style/2014Oct/0108.html">this problem</a>,
1182+
which should be easy, but isn't at the moment.
11801183

11811184
<pre class="prod">
11821185
<dfn><<auto-repeat>></dfn> = repeat( auto, [ <<line-names>>? [ <<length>> | <<percentage>> ] ]+ <<line-names>>? )
@@ -1188,7 +1191,9 @@ Repeat-to-fill</h4>
11881191
that does not cause the <a>grid</a> to overflow its <a>grid container</a>
11891192
(treating all tracks as their <a>max track sizing function</a> if that is <a>definite</a> or as zero otherwise).
11901193
Otherwise, the <a>track list</a> repeats only once.
1191-
A <<track-list>> with more than one ''repeat()/auto'' ''repeat()'' function is invalid.
1194+
A <<track-list>> with more than one ''repeat()/auto'' ''repeat()'' function,
1195+
or with any content-sized tracks in addition to the ''repeat()/auto'' ''repeat()'' function,
1196+
is invalid.
11921197

11931198
Issue: François suggests a way to generate "just enough" repeated columns for the number of items in the grid.
11941199
<a href="https://lists.w3.org/Archives/Public/www-style/2015May/0113.html">(see discussion)</a>

0 commit comments

Comments
 (0)