Skip to content

Commit 3bb7600

Browse files
committed
[css-grid] Use definite minimum sizes to set the repetition number above one.
1 parent 71767b8 commit 3bb7600

1 file changed

Lines changed: 5 additions & 5 deletions

File tree

css-grid/Overview.bs

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1195,15 +1195,14 @@ Repeating Rows and Columns: the ''repeat()'' notation</h4>
11951195
the name lists are merged.
11961196
For example, ''repeat(2, [a] 1fr [b])'' is equivalent to ''[a] 1fr [b a] 1fr [b]''.
11971197

1198-
<h5 id="repeat-auto">
1199-
Repeat-to-fill</h5>
1200-
12011198
When <dfn for="repeat()">''auto-fill''</dfn> is given as the repetition number,
12021199
if the <a>grid container</a> has a <a>definite</a> size or max size in the relevant axis,
12031200
then the number of repetitions is the largest possible positive integer
12041201
that does not cause the <a>grid</a> to overflow its <a>grid container</a>
12051202
(treating each track as its <a>max track sizing function</a> if that is <a>definite</a>
12061203
or as its minimum track sizing function otherwise).
1204+
Otherwise, if the <a>grid container</a> has a <a>definite</a> min size in the relevant axis,
1205+
the number of repetitions is the largest possible positive integer that fulfills that minimum requirement.
12071206
Otherwise, the specified <a>track list</a> repeats only once.
12081207

12091208
The <dfn for="repeat()">''auto-fit''</dfn> keyword behaves the same as ''auto-fill'',
@@ -3656,8 +3655,9 @@ Changes</h2>
36563655
* Renamed <css>row-gap</css>/<css>column-gap</css> to 'grid-row-gap'/'grid-column-gap'
36573656
to avoid having multicol and grid share 'column-gap'.
36583657
This also preserves <css>grid-</css> as a prefix across these properties and their shorthand.
3659-
* Split ''auto'' into ''auto-fill' and ''auto-fit'' keywords for ''repeat()'' notation,
3660-
adjusted grammar to prevent
3658+
* Split ''auto'' into ''auto-fill'' and ''auto-fit'' keywords for ''repeat()'' notation,
3659+
adjusted grammar to guarantee a definite number of repetitions,
3660+
and allowed minimum sizes to increase the number of repetitions past one to fulfill the minimum.
36613661

36623662
The following significant changes were made since the
36633663
<a href=http://www.w3.org/TR/2015/WD-css-grid-1-20150317/>17 March 2015 Working Draft</a>.

0 commit comments

Comments
 (0)