@@ -905,15 +905,16 @@ Sizing Grid Containers</h3>
905
905
<span class="note"> The block layout spec should probably define this,
906
906
but it isn't written yet.</span>
907
907
908
- The <a>max-content size</a> of a <a>grid container</a> is
908
+ The <a>max-content size</a> ( <a>min-content size</a> ) of a <a>grid container</a> is
909
909
the sum of the <a>grid container’s</a> track sizes (including gutters)
910
910
in the appropriate axis,
911
- when the grid is sized under a <a>max-content constraint</a> .
912
-
913
- The <a>min-content size</a> of a <a>grid container</a> is
914
- the sum of the <a>grid container’s</a> track sizes (including gutters)
915
- in the appropriate axis,
916
- when the grid is sized under a <a>min-content constraint</a> .
911
+ when the grid is sized under a <a>max-content constraint</a> (<a>min-content constraint</a> ).
912
+ However, if the sum of the <a>flex factors</a> of the <a>flexible tracks</a>
913
+ is less than one,
914
+ then instead calculate the flexible tracks’ sizes
915
+ using <em> rescaled</em> flex factors--
916
+ each track’s <a>flex factor</a> divided by the sum of all the tracks’ flex factors</a> --
917
+ in place of their actual flex factors.
917
918
918
919
919
920
<!--
@@ -1692,6 +1693,9 @@ Flexible Lengths: the ''fr'' unit</h4>
1692
1693
A <dfn export>flexible length</dfn> or <dfn><<flex>></dfn> is a dimension
1693
1694
with the <dfn value for="<flex>" lt="fr|fr unit">fr</dfn> unit,
1694
1695
which represents a fraction of the <a>leftover space</a> in the <a>grid container</a> .
1696
+ Tracks sized with ''fr'' units are called <dfn>flexible tracks</dfn>
1697
+ as they flex in response to <a>leftover space</a>
1698
+ similar to how <a>flex items</a> fill space in a <a>flex container</a> .
1695
1699
1696
1700
Note: <<flex>> values are not <<length>> s
1697
1701
(nor are they compatible with <<length>> s, like some <<percentage>> values),
@@ -4254,6 +4258,25 @@ Major Changes</h4>
4254
4258
Significant Adjustments and Fixes</h4>
4255
4259
4256
4260
<ul>
4261
+ <li id="change-2016-flex-max-content">
4262
+ Corrected max-content contributions of flexible tracks
4263
+ to handle cases where the sum of the flex factors is less than one.
4264
+ (<a href="https://github.com/w3c/csswg-drafts/issues/1735">Issue 1735</a> )
4265
+ <blockquote>
4266
+ <p>
4267
+ The <a>max-content size</a> (<a>min-content size</a> ) of a <a>grid container</a> is
4268
+ the sum of the <a>grid container’s</a> track sizes (including gutters)
4269
+ in the appropriate axis,
4270
+ when the grid is sized under a <a>max-content constraint</a> (<a>min-content constraint</a> ).
4271
+ <ins> However, if the sum of the <a>flex factors</a> of the <a>flexible tracks</a>
4272
+ is less than one,
4273
+ then instead calculate the flexible tracks’ sizes
4274
+ using <em> rescaled</em> flex factors--
4275
+ each track’s <a>flex factor</a> divided by the sum of all the tracks’ flex factors</a> --
4276
+ in place of their actual flex factors.</ins>
4277
+ </p>
4278
+ </blockquote>
4279
+
4257
4280
<li id="change-2016-flex-clamping-indefinite">
4258
4281
Applied flex factor clamping to 1 also to indefinite case
4259
4282
(<a href="https://drafts.csswg.org/css-grid-1/issues-cr-2016#issue-26">Issue 26</a> ,
0 commit comments