Skip to content

Commit ef78972

Browse files
committed
[css-flexbox-1] Make note about initial vs default flex shorthand component values more obvious. w3c#6639
1 parent 5f61211 commit ef78972

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

css-flexbox-1/Overview.bs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1518,6 +1518,13 @@ The 'flex' Shorthand</h3>
15181518
If a box is not a <a>flex item</a>,
15191519
'flex' has no effect.
15201520

1521+
Note: The initial values of the 'flex' longhands are equivalent to
1522+
<a class="css-code" href="#flex-initial">flex: 0 1 auto</a>.
1523+
This differs from their defaults when omitted in the 'flex' shorthand
1524+
(effectively ''1 1 0px'')
1525+
so that the 'flex' shorthand can better accommodate
1526+
<a href="#flex-common">the most common cases</a>.
1527+
15211528
<dl dfn-type=value dfn-for=flex>
15221529
<dt><dfn><<'flex-grow'>></dfn>
15231530
<dd>
@@ -1648,12 +1655,6 @@ The 'flex' Shorthand</h3>
16481655
</figcaption>
16491656
</figure>
16501657

1651-
The initial values of the 'flex' components are equivalent to <a class="css-code" href="#flex-initial">flex: 0 1 auto</a>.
1652-
1653-
Note: The initial values of 'flex-grow' and 'flex-basis'
1654-
are different from their defaults when omitted in the 'flex' shorthand.
1655-
This is so that the 'flex' shorthand can better accommodate the most <a href="#flex-common">common cases</a>.
1656-
16571658
A unitless zero that is not already preceded by two flex factors
16581659
must be interpreted as a flex factor.
16591660
To avoid misinterpretation or invalid declarations,

0 commit comments

Comments
 (0)