@@ -1496,7 +1496,7 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
14961496
14971497 <dfn><track-size></dfn> = <<track-breadth>> | minmax( <<inflexible-breadth>> , <<track-breadth>> ) | fit-content( <<length-percentage [0,∞]>> )
14981498 <dfn><fixed-size></dfn> = <<fixed-breadth>> | minmax( <<fixed-breadth>> , <<track-breadth>> ) | minmax( <<inflexible-breadth>> , <<fixed-breadth>> )
1499- <dfn><track-breadth></dfn> = <<length-percentage [0,∞]>> | <<flex [0,∞]>> | min-content | max-content | auto
1499+ <dfn><track-breadth></dfn> = <<length-percentage [0,∞]>> | <<fraction [0,∞]>> | min-content | max-content | auto
15001500 <dfn><inflexible-breadth></dfn> = <<length-percentage [0,∞]>> | min-content | max-content | auto
15011501 <dfn><fixed-breadth></dfn> = <<length-percentage [0,∞]>>
15021502 <dfn><line-names></dfn> = '[' <<custom-ident>> * ']'
@@ -1525,10 +1525,10 @@ Track Sizes</h4>
15251525 and then resolve against that resulting <a>grid container</a> size
15261526 for the purpose of laying out the <a>grid</a> and its items.
15271527
1528- <dt> <dfn><<flex [0,∞]>></dfn>
1528+ <dt> <dfn><<fraction [0,∞]>></dfn>
15291529 <dd>
15301530 Specifies the track's <dfn dfn noexport>flex factor</dfn> .
1531- Each <<flex >> -sized track takes a share of the remaining space in proportion to its <a>flex factor</a> .
1531+ Each <<fraction >> -sized track takes a share of the remaining space in proportion to its <a>flex factor</a> .
15321532 For example, given a track listing of ''1fr 2fr'' ,
15331533 the tracks will take up ⅓ and ⅔ of the <a>leftover space</a> , respectively.
15341534 See [[#flexible-tracks]] for more details.
@@ -1538,7 +1538,7 @@ Track Sizes</h4>
15381538 rather than expanding to fill the entire thing.
15391539
15401540 When appearing outside a ''minmax()'' notation,
1541- implies an automatic minimum (i.e. ''minmax(auto, <<flex >>)'' ).
1541+ implies an automatic minimum (i.e. ''minmax(auto, <<fraction >>)'' ).
15421542
15431543 <dt> <dfn function lt="minmax()">minmax(<var>min</var>, <var>max</var>)</dfn>
15441544 <dd>
@@ -1548,10 +1548,10 @@ Track Sizes</h4>
15481548 If the <var> max</var> is less than the <var> min</var> ,
15491549 then the <var> max</var> will be floored by the <var> min</var>
15501550 (essentially yielding ''minmax(<var>min</var>, <var>min</var>)'' ).
1551- As a maximum, a <<flex >> value sets the track's <a>flex factor</a> ;
1551+ As a maximum, a <<fraction >> value sets the track's <a>flex factor</a> ;
15521552 it is invalid as a minimum.
15531553
1554- Note: A future level of this spec may allow <<flex >> minimums,
1554+ Note: A future level of this spec may allow <<fraction >> minimums,
15551555 and will update the <a>track sizing algorithm</a> to account for this correctly
15561556
15571557 <dt> <dfn>auto</dfn>
@@ -1633,7 +1633,7 @@ Track Sizes</h4>
16331633 (the ''1fr'' sizes both resolve to ''0'' ).
16341634 If the sum is less than the <a>grid container</a> ’s width,
16351635 the final <a>grid line</a> will be exactly at the end edge of the <a>grid container</a> .
1636- This is true in general whenever there's at least one <<flex >> value among the <a>grid track</a> sizes.
1636+ This is true in general whenever there's at least one <<fraction >> value among the <a>grid track</a> sizes.
16371637 </div>
16381638
16391639 <div class='example'>
@@ -1847,9 +1847,11 @@ Interpolation/Combination of ''repeat()''</h5>
18471847<h4 id='flexible-tracks'>
18481848Flexible Tracks</h4>
18491849
1850- Tracks sized using <<flex>> values are called <dfn>flexible tracks</dfn>
1850+ Tracks sized using a <<fraction>> of the <a>leftover space</a>
1851+ are called <dfn>flexible tracks</dfn>
18511852 as they flex in response to <a>leftover space</a>
1852- similar to how <a>flex items</a> with a zero base size fill space in a <a>flex container</a> .
1853+ similar to how <a>flex items</a> with a zero base size
1854+ fill space in a <a>flex container</a> .
18531855
18541856 The distribution of <a>leftover space</a> occurs after all non-flexible <a>track sizing functions</a> have reached their maximum.
18551857 The total size of such rows or columns is subtracted from the available space, yielding the <a>leftover space</a> ,
@@ -3561,7 +3563,7 @@ Inline-axis Alignment: the 'justify-self' and 'justify-items' properties</h3>
35613563 that item does not participate in baseline alignment,
35623564 and instead uses its <a>fallback alignment</a>
35633565 as if that were originally specified.
3564- For this purpose, <<flex >> track sizes count as “intrinsically-sized”
3566+ For this purpose, <<fraction >> track sizes count as “intrinsically-sized”
35653567 when the [=grid container=] has an [=indefinite=] size in the relevant axis.
35663568
35673569 Note: Whether the fallback alignment is used or not
@@ -3584,7 +3586,7 @@ Block-axis Alignment: the 'align-self' and 'align-items' properties</h3>
35843586 that item does not participate in baseline alignment,
35853587 and instead uses its <a>fallback alignment</a>
35863588 as if that were originally specified.
3587- For this purpose, <<flex >> track sizes count as “intrinsically-sized”
3589+ For this purpose, <<fraction >> track sizes count as “intrinsically-sized”
35883590 when the [=grid container=] has an [=indefinite=] size in the relevant axis.
35893591
35903592<h3 id='grid-align'>
@@ -3780,7 +3782,7 @@ Grid Sizing Algorithm</h3>
37803782 <ul>
37813783 <li> A <dfn>fixed sizing function</dfn> (<<length>> or resolvable <<percentage>> ).
37823784 <li> An <dfn>intrinsic sizing function</dfn> (''min-content'' , ''max-content'' , ''grid-template-rows/auto'' , ''fit-content()'' ).
3783- <li> A <dfn>flexible sizing function</dfn> (<<flex >> ).
3785+ <li> A <dfn>flexible sizing function</dfn> (<<fraction >> ).
37843786 </ul>
37853787
37863788 The <a>grid sizing algorithm</a> defines how to resolve these sizing constraints into used track sizes.
@@ -3821,7 +3823,7 @@ Grid Sizing Algorithm</h3>
38213823 <li>
38223824 infinity, if any track that it spans
38233825 has a ''max-content'' min sizing function
3824- or a ''max-content'' , ''auto'' , or <<flex >> max sizing function.
3826+ or a ''max-content'' , ''auto'' , or <<fraction >> max sizing function.
38253827 </ul>
38263828
38273829 This is may reduce the amount of re-layout passes that are necessary,
@@ -3894,7 +3896,7 @@ Track Sizing Terminology</h3>
38943896 <dd>
38953897 If the track was sized with a ''minmax()'' function,
38963898 this is the first argument to that function.
3897- If the track was sized with a <<flex >> value or ''fit-content()'' function,
3899+ If the track was sized with a <<fraction >> value or ''fit-content()'' function,
38983900 ''auto'' .
38993901 Otherwise, the track's sizing function.
39003902
@@ -4872,7 +4874,7 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
48724874 See [[#layout-algorithm]] .
48734875 (<a href="https://github.com/w3c/csswg-drafts/issues/3418">Issue 3418</a> )
48744876 <li id="change-2020-fr-unit">
4875- Moved the definition of <<flex >> to [[css-values-4#fractions]] ,
4877+ Moved the definition of <<fraction >> to [[css-values-4#fractions]] ,
48764878 as other specs also make use of it.
48774879 (<a href="https://github.com/w3c/csswg-drafts/issues/8027">Issue 8027</a> )
48784880 </ul>
@@ -5568,7 +5570,7 @@ Major Changes</h4>
55685570 when <<percentage>> sizes are used
55695571 in <a lt="fit-content size">fit-content</a> -sized <a>grid containers</a>
55705572 such as ''width/auto'' -sized inline or floated <a>grid containers</a> .
5571- (To avoid this problem, use <<flex >> units instead,
5573+ (To avoid this problem, use <<fraction >> units instead,
55725574 which are intended to maintain their ratios and not overflow
55735575 when the grid is intrinsically-sized.)
55745576 <blockquote>
0 commit comments