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
Individual components of flexibility can be controlled by independent longhand properties.
1616
1616
1617
-
<pclass=note>
1618
-
Authors are encouraged to control flexibility using the <aclass=propertydata-link-type=propdeschref=#propdef-flextitle=flex>flex</a> shorthand
1619
-
rather than with component properties,
1620
-
as the shorthand correctly resets any unspecified components
1621
-
to accommodate <ahref=#flex-common>common uses</a>.
1617
+
<pclass=note>Note: Authors are encouraged to control flexibility using the <aclass=propertydata-link-type=propdeschref=#propdef-flextitle=flex>flex</a> shorthand
1618
+
rather than with component properties,
1619
+
as the shorthand correctly resets any unspecified components
1620
+
to accommodate <ahref=#flex-common>common uses</a>.</p>
The <aclass=propertydata-link-type=propdeschref=#propdef-flex-growtitle=flex-grow>flex-grow</a> property</span><aclass=self-linkhref=#flex-grow-property></a></h4>
<pclass=note>Note: Authors are encouraged to control flexibility using the <aclass=propertydata-link-type=propdeschref=#propdef-flextitle=flex>flex</a> shorthand
1628
+
rather than with component properties,
1629
+
as the shorthand correctly resets any unspecified components
1630
+
to accommodate <ahref=#flex-common>common uses</a>.</p>
1631
+
1628
1632
<p>
1629
1633
The <aclass=propertydata-link-type=propdeschref=#propdef-flex-growtitle=flex-grow>flex-grow</a> property sets the <adata-link-type=dfnhref=#flex-grow-factortitle="flex grow factor">flex grow factor</a>
1630
1634
to the provided <dfnclass=css-codedata-dfn-for=flex-growdata-dfn-type=valuedata-export="" id=valuedef-number0><aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#number-valuetitle="<number>"><number></a><aclass=self-linkhref=#valuedef-number0></a></dfn>.
<pclass=note>Note: Authors are encouraged to control flexibility using the <aclass=propertydata-link-type=propdeschref=#propdef-flextitle=flex>flex</a> shorthand
1643
+
rather than with component properties,
1644
+
as the shorthand correctly resets any unspecified components
1645
+
to accommodate <ahref=#flex-common>common uses</a>.</p>
1646
+
1638
1647
<p>
1639
1648
The <aclass=propertydata-link-type=propdeschref=#propdef-flex-shrinktitle=flex-shrink>flex-shrink</a> property sets the <adata-link-type=dfnhref=#flex-shrink-factortitle="flex shrink factor">flex shrink factor</a>
1640
1649
to the provided <dfnclass=css-codedata-dfn-for=flex-shrinkdata-dfn-type=valuedata-export="" id=valuedef-number><aclass="production css-code" data-link-type=typehref=http://dev.w3.org/csswg/css-values-3/#number-valuetitle="<number>"><number></a><aclass=self-linkhref=#valuedef-number></a></dfn>.
<tableclass="definition propdef"><tr><th>Name:<td><dfnclass=css-codedata-dfn-type=propertydata-export="" id=propdef-flex-basis>flex-basis<aclass=self-linkhref=#propdef-flex-basis></a></dfn><tr><th>Value:<tdclass=prod>main-size <aclass=prod-puncdata-link-type=grammarhref=http://dev.w3.org/csswg/css-values-3/#comb-onetitle=|>|</a><aclass=productiondata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width><‘width’></a><tr><th>Initial:<td>main-size<tr><th>Applies to:<td><adata-link-type=dfnhref=#flex-itemtitle="flex items">flex items</a><tr><th>Inherited:<td>no<tr><th>Media:<td>visual<tr><th>Computed value:<td>as specified, with lengths made absolute<tr><th>Percentages:<td>relative to the <adata-link-type=dfnhref=#flex-containertitle="flex container’s">flex container’s</a> inner <adata-link-type=dfnhref=#main-sizetitle="main size">main size</a><tr><th>Animatable:<td>as <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a></table>
1647
1656
1657
+
<pclass=note>Note: Authors are encouraged to control flexibility using the <aclass=propertydata-link-type=propdeschref=#propdef-flextitle=flex>flex</a> shorthand
1658
+
rather than with component properties,
1659
+
as the shorthand correctly resets any unspecified components
1660
+
to accommodate <ahref=#flex-common>common uses</a>.</p>
1661
+
1648
1662
<p>
1649
1663
The <aclass=propertydata-link-type=propdeschref=#propdef-flex-basistitle=flex-basis>flex-basis</a> property sets the <adata-link-type=dfnhref=#flex-basistitle="flex basis">flex basis</a>.
1650
1664
It accepts the same values as the <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a> and <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-heighttitle=height>height</a> property.
The <dfnclass=css-codedata-dfn-for=flex-basisdata-dfn-type=valuedata-export="" id=valuedef-main-size>main-size<aclass=self-linkhref=#valuedef-main-size></a></dfn> keyword, when specified on a <adata-link-type=dfnhref=#flex-itemtitle="flex item">flex item</a>,
1654
1668
retrieves the value of the <adata-link-type=dfnhref=#main-size-propertytitle="main size property">main size property</a>.
1655
1669
1670
+
<pclass=issueid=issue-cdba524f><aclass=self-linkhref=#issue-cdba524f></a>This value was originally named "auto",
1671
+
but that was confusing</p>
1672
+
1656
1673
<p>
1657
1674
The <adata-link-type=dfnhref=#flex-basistitle="flex basis">flex basis</a> is resolved the same way as <aclass=propertydata-link-type=propdeschref=http://dev.w3.org/csswg/css2/visudet.html#propdef-widthtitle=width>width</a> in horizontal writing modes <adata-biblio-type=normativedata-link-type=bibliohref=#biblio-css21title=biblio-css21>[CSS21]</a>:
1658
1675
percentage values of <aclass=propertydata-link-type=propdeschref=#propdef-flex-basistitle=flex-basis>flex-basis</a> are resolved against
0 commit comments