You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -706,8 +706,8 @@ <h3 id=flex-function><span class=secno>5.3. </span> The ‘<code
706
706
href="#positive-flexibility"><i>positive flexibility</i></a> is set to
707
707
the number, the <ahref="#negative-flexibility"><i>negative
708
708
flexibility</i></a> is set to ‘<codeclass=css>0</code>’,
709
-
and the <i>preferred size</i> is set to ‘<code
710
-
class=css>auto</code>’.
709
+
and the <i>preferred size</i> is set to the <length> or
710
+
<percentage>.
711
711
712
712
<li>Otherwise, the ‘<codeclass=css>flex()</code>’ function
713
713
is invalid.
@@ -846,9 +846,9 @@ <h2 id=flex-pack><span class=secno>6. </span> The ‘<a
846
846
847
847
<img alt="In a horizontal flexbox, the measure axis is horizontal, while the length axis is vertical.">
848
848
849
-
<p>The measure axis is more interesting, as there are more places where things can potentially flex. As such, there are more controls for specifying how to distribute free space in this axis: the ‘<code class=property>width</code>’ or ‘<code class=property>height</code>’ property starts things off, modified by the ‘<code class=property>flex</code>’ property; the ‘<code class=property>margin</code>’ property gives individual control over spacing between <i>flexbox item</i>s; and the ‘<code class=property>flex-pack</code>’ property gives a more flexbox-global level of control over the between-children spacing.</p>
849
+
<p>The measure axis is more interesting, as there are more places where things can potentially flex. As such, there are more controls for specifying how to distribute free space in this axis: the 'width' or 'height' property starts things off, modified by the 'flex' property; the 'margin' property gives individual control over spacing between <i>flexbox item</i>s; and the 'flex-pack' property gives a more flexbox-global level of control over the between-children spacing.</p>
850
850
851
-
<p>In general terms, determining where to allocate free space in the measure axis starts by determining just how much free space there is. All the non-flexible lengths, and the preferred sizes of all the flexible widths or heights, are subtracted from the total width or height of the flexbox. If a positive length is left over, this is split up among all the flexible lengths according to their flexibility. Flexible margins automatically have a flexibility of 1, while widths or heights have their flexibility specified by the ‘<code class=property>flex-grow</code>’ property.</p>
851
+
<p>In general terms, determining where to allocate free space in the measure axis starts by determining just how much free space there is. All the non-flexible lengths, and the preferred sizes of all the flexible widths or heights, are subtracted from the total width or height of the flexbox. If a positive length is left over, this is split up among all the flexible lengths according to their flexibility. Flexible margins automatically have a flexibility of 1, while widths or heights have their flexibility specified by the 'flex-grow' property.</p>
852
852
853
853
<div class=example>
854
854
<p>Three boxes, all with a preferred size of 0, will end up with sizes exactly proportional to their flex-grow values.</p>
@@ -863,16 +863,16 @@ <h2 id=flex-pack><span class=secno>6. </span> The ‘<a
863
863
<img alt="">
864
864
</div>
865
865
866
-
<p>If none of the lengths are flexible, or if all the flexible widths or height have reached their maximum size (if ‘<code class=property>max-width</code>’ or ‘<code class=property>max-height</code>’ properties are in effect), then any leftover space is distributed according to the ‘<code class=property>flex-pack</code>’ property between the margins of the <i>flexbox item</i>s.</p>
866
+
<p>If none of the lengths are flexible, or if all the flexible widths or height have reached their maximum size (if 'max-width' or 'max-height' properties are in effect), then any leftover space is distributed according to the 'flex-pack' property between the margins of the <i>flexbox item</i>s.</p>
867
867
868
868
<div class=example>
869
869
<p>If the flexbox is small enough, then the flexible child can absorb all the space...</p>
870
870
<img>
871
-
<p>...but if it gets large enough, there'll be extra space left over for ‘<code class=property>flex-pack</code>’ to distribute.</p>
871
+
<p>...but if it gets large enough, there'll be extra space left over for 'flex-pack' to distribute.</p>
872
872
<img>
873
873
</div>
874
874
875
-
<p>If the original calculation of how much free space was left gave a negative length (that is, if the preferred sizes of all the <i>flexbox item</i>s sum to a larger length than the width or height of the flexbox), then flexible margins get set to 0, ‘<code class=property>flex-pack</code>’ has no effect, and <i>flexbox item</i>s with a non-zero ‘<code class=property>flex-shrink</code>’ value split the responsibility for shrinking between themselves proportionally. Just like when they grow, their size starts from the preferred size, then combines that with the proportional share of (negative) space.</p>
875
+
<p>If the original calculation of how much free space was left gave a negative length (that is, if the preferred sizes of all the <i>flexbox item</i>s sum to a larger length than the width or height of the flexbox), then flexible margins get set to 0, 'flex-pack' has no effect, and <i>flexbox item</i>s with a non-zero 'flex-shrink' value split the responsibility for shrinking between themselves proportionally. Just like when they grow, their size starts from the preferred size, then combines that with the proportional share of (negative) space.</p>
876
876
877
877
<div class=example>
878
878
<p>When the children are too wide, the shrinkable elements reduce their size to fit...</p>
@@ -1355,15 +1355,15 @@ <h2 id=layout-interface><span class=secno>9. </span> Interface With Other
1355
1355
the following equation applies for calculating the width:
0 commit comments