@@ -1496,7 +1496,7 @@ Explicit Track Sizing: the 'grid-template-rows' and 'grid-template-columns' prop
1496
1496
1497
1497
<dfn><track-size></dfn> = <<track-breadth>> | minmax( <<inflexible-breadth>> , <<track-breadth>> ) | fit-content( <<length-percentage [0,∞]>> )
1498
1498
<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
1500
1500
<dfn><inflexible-breadth></dfn> = <<length-percentage [0,∞]>> | min-content | max-content | auto
1501
1501
<dfn><fixed-breadth></dfn> = <<length-percentage [0,∞]>>
1502
1502
<dfn><line-names></dfn> = '[' <<custom-ident>> * ']'
@@ -1525,10 +1525,10 @@ Track Sizes</h4>
1525
1525
and then resolve against that resulting <a>grid container</a> size
1526
1526
for the purpose of laying out the <a>grid</a> and its items.
1527
1527
1528
- <dt> <dfn><<flex [0,∞]>></dfn>
1528
+ <dt> <dfn><<fraction [0,∞]>></dfn>
1529
1529
<dd>
1530
1530
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> .
1532
1532
For example, given a track listing of ''1fr 2fr'' ,
1533
1533
the tracks will take up ⅓ and ⅔ of the <a>leftover space</a> , respectively.
1534
1534
See [[#flexible-tracks]] for more details.
@@ -1538,7 +1538,7 @@ Track Sizes</h4>
1538
1538
rather than expanding to fill the entire thing.
1539
1539
1540
1540
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 >>)'' ).
1542
1542
1543
1543
<dt> <dfn function lt="minmax()">minmax(<var>min</var>, <var>max</var>)</dfn>
1544
1544
<dd>
@@ -1548,10 +1548,10 @@ Track Sizes</h4>
1548
1548
If the <var> max</var> is less than the <var> min</var> ,
1549
1549
then the <var> max</var> will be floored by the <var> min</var>
1550
1550
(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> ;
1552
1552
it is invalid as a minimum.
1553
1553
1554
- Note: A future level of this spec may allow <<flex >> minimums,
1554
+ Note: A future level of this spec may allow <<fraction >> minimums,
1555
1555
and will update the <a>track sizing algorithm</a> to account for this correctly
1556
1556
1557
1557
<dt> <dfn>auto</dfn>
@@ -1633,7 +1633,7 @@ Track Sizes</h4>
1633
1633
(the ''1fr'' sizes both resolve to ''0'' ).
1634
1634
If the sum is less than the <a>grid container</a> ’s width,
1635
1635
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.
1637
1637
</div>
1638
1638
1639
1639
<div class='example'>
@@ -1847,9 +1847,11 @@ Interpolation/Combination of ''repeat()''</h5>
1847
1847
<h4 id='flexible-tracks'>
1848
1848
Flexible Tracks</h4>
1849
1849
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>
1851
1852
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> .
1853
1855
1854
1856
The distribution of <a>leftover space</a> occurs after all non-flexible <a>track sizing functions</a> have reached their maximum.
1855
1857
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>
3561
3563
that item does not participate in baseline alignment,
3562
3564
and instead uses its <a>fallback alignment</a>
3563
3565
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”
3565
3567
when the [=grid container=] has an [=indefinite=] size in the relevant axis.
3566
3568
3567
3569
Note: Whether the fallback alignment is used or not
@@ -3584,7 +3586,7 @@ Block-axis Alignment: the 'align-self' and 'align-items' properties</h3>
3584
3586
that item does not participate in baseline alignment,
3585
3587
and instead uses its <a>fallback alignment</a>
3586
3588
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”
3588
3590
when the [=grid container=] has an [=indefinite=] size in the relevant axis.
3589
3591
3590
3592
<h3 id='grid-align'>
@@ -3780,7 +3782,7 @@ Grid Sizing Algorithm</h3>
3780
3782
<ul>
3781
3783
<li> A <dfn>fixed sizing function</dfn> (<<length>> or resolvable <<percentage>> ).
3782
3784
<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 >> ).
3784
3786
</ul>
3785
3787
3786
3788
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>
3821
3823
<li>
3822
3824
infinity, if any track that it spans
3823
3825
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.
3825
3827
</ul>
3826
3828
3827
3829
This is may reduce the amount of re-layout passes that are necessary,
@@ -3894,7 +3896,7 @@ Track Sizing Terminology</h3>
3894
3896
<dd>
3895
3897
If the track was sized with a ''minmax()'' function,
3896
3898
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,
3898
3900
''auto'' .
3899
3901
Otherwise, the track's sizing function.
3900
3902
@@ -4872,7 +4874,7 @@ Changes since the <a href="https://www.w3.org/TR/2020/CRD-css-grid-1-20201218/">
4872
4874
See [[#layout-algorithm]] .
4873
4875
(<a href="https://github.com/w3c/csswg-drafts/issues/3418">Issue 3418</a> )
4874
4876
<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]] ,
4876
4878
as other specs also make use of it.
4877
4879
(<a href="https://github.com/w3c/csswg-drafts/issues/8027">Issue 8027</a> )
4878
4880
</ul>
@@ -5568,7 +5570,7 @@ Major Changes</h4>
5568
5570
when <<percentage>> sizes are used
5569
5571
in <a lt="fit-content size">fit-content</a> -sized <a>grid containers</a>
5570
5572
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,
5572
5574
which are intended to maintain their ratios and not overflow
5573
5575
when the grid is intrinsically-sized.)
5574
5576
<blockquote>
0 commit comments