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
is defined if the item’s 'flex-basis' is ''main-size''
925
+
and its computed <a>main size property</a> is <a>definite</a>,
926
+
and is that width (clamped by its <a>max main size property</a> if it's <a>definite</a>).
927
+
928
+
<dt><var>transferred size</var>
929
+
<dd>
930
+
is defined if the item has an intrinsic aspect ratio
931
+
and its computed <a>cross size property</a> is <a>definite</a>,
932
+
and is that height (clamped by its <a title="min cross size property">min and max cross size properties</a> if they are <a>definite</a>),
933
+
converted through the aspect ratio.
934
+
935
+
<dt><var>content size</var>
936
+
<dd>
937
+
is the <a>min-content size</a> in the <a>main axis</a>,
938
+
clamped, if it has an aspect ratio, by any <a>definite</a><a title="min cross size property">min and max cross size properties</a> converted through the aspect ratio,
939
+
and then further clamped by the <a>max main size property</a> if that is <a>definite</a>.
940
+
</dl>
911
941
912
942
Otherwise,
913
943
this keyword computes to ''0''
@@ -1994,6 +2024,7 @@ Cross-axis Alignment: the 'align-items' and 'align-self' properties</h3>
1994
2024
<dt><dfn>stretch</dfn>
1995
2025
<dd>
1996
2026
If the <i>cross size property</i> of the <i>flex item</i> computes to ''width/auto'',
2027
+
and either of the <a>cross-axis</a> margins are ''margin/auto'',
1997
2028
the <a>flex item</a> is <dfn dfn for=''>stretched</dfn>.
1998
2029
Its used value is the length necessary to make the <i>cross size</i> of the item's margin box as close to the same size as the line as possible,
1999
2030
while still respecting the constraints imposed by 'min-height'/'min-width'/'max-height'/'max-width'.
A <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a>’s width or height,
632
629
whichever is in the <adata-link-type=dfnhref=#main-dimensiontitle="main dimension">main dimension</a>,
633
630
is the item’s <dfndata-dfn-type=dfndata-export="" id=main-size>main size<aclass=self-linkhref=#main-size></a></dfn>.
634
-
The <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a>’s <dfndata-dfn-type=dfndata-export="" id=main-size-property>main size property<aclass=self-linkhref=#main-size-property></a></dfn> is
631
+
The <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a>’s <dfndata-dfn-type=dfndata-export="" id=main-size-propertytitle="main size property|max main size property|min main size property">main size property<aclass=self-linkhref=#main-size-property></a></dfn> is
635
632
either the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a> or <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a> property,
636
633
whichever is in the <adata-link-type=dfnhref=#main-dimensiontitle="main dimension">main dimension</a>.
The width or height of a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a>,
657
654
whichever is in the <adata-link-type=dfnhref=#cross-dimensiontitle="cross dimension">cross dimension</a>,
658
655
is the item’s <dfndata-dfn-type=dfndata-export="" id=cross-size>cross size<aclass=self-linkhref=#cross-size></a></dfn>.
659
-
The <dfndata-dfn-type=dfndata-export="" id=cross-size-property>cross size property<aclass=self-linkhref=#cross-size-property></a></dfn> is
656
+
The <dfndata-dfn-type=dfndata-export="" id=cross-size-propertytitle="cross size property|max cross size property|min cross size property">cross size property<aclass=self-linkhref=#cross-size-property></a></dfn> is
660
657
whichever of <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a> or <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a> that is in the <adata-link-type=dfnhref=#cross-dimensiontitle="cross dimension">cross dimension</a>.
On a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> whose <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css-overflow-3/#overflow0title=overflow>overflow</a> is <spanclass=cssdata-link-for=overflow>visible</span> in the <adata-link-type=dfnhref=#main-axistitle="main axis">main axis</a>,
1027
1024
when specified on the <adata-link-type=dfnhref=#flex-itemtitle="flex item’s">flex item’s</a> main-axis min-size property,
1028
-
this keyword specifies as the minimum size the smallest of:
1025
+
the following table gives the minimum size:
1029
1026
1030
-
<ul>
1031
-
<li>if <aclass=propertydata-link-type=propdeschref=#propdef-flex-basistitle=flex-basis>flex-basis</a> is <aclass=cssdata-link-type=maybehref=#valdef-flex-basis-main-sizetitle=main-size>main-size</a>,
1032
-
the computed <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a>),
1033
-
if that value is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>.
1034
-
1035
-
<li>the computed <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-widthtitle=max-width>max-width</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-heighttitle=max-height>max-height</a>), if that value is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>,
1036
-
<li>if the item has an intrinsic aspect ratio and a <adata-link-type=dfnhref=#definitetitle=definite>definite</a><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-heighttitle=max-height>max-height</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-widthtitle=max-width>max-width</a>),
1037
-
the width (height) calculated from
1038
-
the aspect ratio and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-heighttitle=max-height>max-height</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-widthtitle=max-width>max-width</a>).
1039
-
<li>if the item has an intrinsic aspect ratio and a <adata-link-type=dfnhref=#definitetitle=definite>definite</a><aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a>),
1040
-
the width (height) calculated from
1041
-
the aspect ratio and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a> (<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a>).
1042
-
<li>if the item has no intrinsic aspect ratio, its <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-inline-sizetitle="min-content size">min-content size</a>,
is defined if the item’s <aclass=propertydata-link-type=propdeschref=#propdef-flex-basistitle=flex-basis>flex-basis</a> is <aclass=cssdata-link-type=maybehref=#valdef-flex-basis-main-sizetitle=main-size>main-size</a>
1060
+
and its computed <adata-link-type=dfnhref=#main-size-propertytitle="main size property">main size property</a> is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>,
1061
+
and is that width (clamped by its <adata-link-type=dfnhref=#main-size-propertytitle="max main size property">max main size property</a> if it’s <adata-link-type=dfnhref=#definitetitle=definite>definite</a>).
1062
+
1063
+
<dt><var>transferred size</var>
1064
+
<dd>
1065
+
is defined if the item has an intrinsic aspect ratio
1066
+
and its computed <adata-link-type=dfnhref=#cross-size-propertytitle="cross size property">cross size property</a> is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>,
1067
+
and is that height (clamped by its <adata-link-type=dfnhref=#cross-size-propertytitle="min cross size property">min and max cross size properties</a> if they are <adata-link-type=dfnhref=#definitetitle=definite>definite</a>),
1068
+
converted through the aspect ratio.
1069
+
1070
+
<dt><var>content size</var>
1071
+
<dd>
1072
+
is the <adata-link-type=dfnhref=http://dev.w3.org/csswg/css-sizing-3/#min-content-inline-sizetitle="min-content size">min-content size</a> in the <adata-link-type=dfnhref=#main-axistitle="main axis">main axis</a>,
1073
+
clamped, if it has an aspect ratio, by any <adata-link-type=dfnhref=#definitetitle=definite>definite</a><adata-link-type=dfnhref=#cross-size-propertytitle="min cross size property">min and max cross size properties</a> converted through the aspect ratio,
1074
+
and then further clamped by the <adata-link-type=dfnhref=#main-size-propertytitle="max main size property">max main size property</a> if that is <adata-link-type=dfnhref=#definitetitle=definite>definite</a>.
If the <adata-link-type=dfnhref=#cross-size-propertytitle="cross size property">cross size property</a> of the <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> computes to <spanclass=cssdata-link-for=width>auto</span>,
1991
+
and either of the <adata-link-type=dfnhref=#cross-axistitle=cross-axis>cross-axis</a> margins are <spanclass=cssdata-link-for=margin>auto</span>,
1959
1992
the <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a> is <dfndata-dfn-for="" data-dfn-type=dfndata-noexport="" id=stretched>stretched<aclass=self-linkhref=#stretched></a></dfn>.
1960
1993
Its used value is the length necessary to make the <adata-link-type=dfnhref=#cross-sizetitle="cross size">cross size</a> of the item’s margin box as close to the same size as the line as possible,
1961
1994
while still respecting the constraints imposed by <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-min-heighttitle=min-height>min-height</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-min-widthtitle=min-width>min-width</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-heighttitle=max-height>max-height</a>/<aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-widthtitle=max-width>max-width</a>.
0 commit comments