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
Equal to the <a>available space</a> minus the sum of the <a>base sizes</a> of all the grid tracks,
3198
-
clamped to a minimum of zero.
3199
-
This value can change over the course of the algorithm,
3200
-
as <a>base sizes</a> are adjusted.
3197
+
Independently in each dimension, the <a>available grid space</a> is:
3198
+
3199
+
* If the <a>grid container's</a> size is definite, then use the size of the resulting content box.
3200
+
* If the <a>grid container</a> is being sized under a <a>min-content constraint</a> or <a>max-content constraint</a> , then the <a>available grid space</a> is that constraint (and is indefinite).
3201
+
3202
+
Note: ''auto'' sizes that indicate content-based sizing (e.g. the height of a block-level box in horizontal writing modes) are equivalent to ''max-content''.
3203
+
3204
+
In all cases, clamp the <a>available grid space</a> by the <a>grid container's</a> min/max-width/height properties, if they are definite.
3201
3205
3202
-
If <a>available space</a> is <a>indefinite</a>,
3206
+
<dt><dfn>free space</dfn>
3207
+
<dd>
3208
+
Equal to the <a>available grid space</a> minus the sum of the <a>base sizes</a> of all the grid tracks, floored at zero.
3209
+
If <a>available grid space</a> is <a>indefinite</a>,
3203
3210
the <a>free space</a> is <a>indefinite</a> as well.
3204
3211
3205
3212
<dt><dfn>span count</dfn>
@@ -3501,6 +3508,11 @@ Maximize Tracks</h3>
3501
3508
if sizing under a <a>min-content constraint</a>,
3502
3509
the <a>free space</a> is zero.
3503
3510
3511
+
If this would cause the grid to be larger than the <a>grid container's</a><a property lt=max-width>max-width/height</a>,
3512
+
then redo this step,
3513
+
treating the <a>available grid space</a> as equal to the <a>grid container's</a> content box size
3514
+
when it's sized to its <a property lt=max-width>max-width/height</a>.
and a <a>space to fill</a> of the item's <a>max-content contribution</a>.
3537
3550
</ul>
3551
+
3552
+
If using this <a>flex fraction</a> would cause the <a>grid</a> to be smaller than the <a>grid container's</a><a property lt=min-width>min-width/height</a>
3553
+
(or larger than the <a>grid container's</a><a property lt=max-width>max-width/height</a>),
3554
+
then redo this step,
3555
+
treating the <a>free space</a> as definite
3556
+
and the <a>available grid space</a> as equal to the <a>grid container's</a> content box size when it's sized to its <a property lt=min-width>min-width/height</a> (<a property lt=max-width>max-width/height</a>).
0 commit comments