Skip to content

Commit fb61c91

Browse files
committed
[css-flexbox] Expand issue discussion wrt flex-basis: auto
--HG-- extra : rebase_source : 5e00f3cb2b82e57fc36734bdb8a8feef14369adb
1 parent a82464f commit fb61c91

2 files changed

Lines changed: 135 additions & 49 deletions

File tree

css-flexbox/Overview.bs

Lines changed: 33 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1698,8 +1698,32 @@ The 'flex-basis' property</h4>
16981698
The <dfn value for=flex-basis>main-size</dfn> keyword, when specified on a <i>flex item</i>,
16991699
retrieves the value of the <i>main size property</i>.
17001700

1701-
Issue: This value was originally named "auto",
1702-
but that was confusing
1701+
<div class="issue">
1702+
This value was originally named ''auto'',
1703+
but that was problematic because it left us with no keyword to represent an automatic flex basis.
1704+
There were two options for fixing this:
1705+
1706+
<dl>
1707+
<dt>''auto'' for automatic sizing; ''main-axis'' for size lookup
1708+
<dd>
1709+
The advantage of this is primarily that ''auto'' means “automatic”
1710+
both when it is specified for 'flex-basis' and when it is pulled in from 'width'/'height'.
1711+
It has the disadvantage (due to back-compat concerns) that the 'flex' shorthand had to be tweaked
1712+
to expand ''flex: auto'' to ''flex: auto main-size'' rather than to ''flex: 1 auto''.
1713+
It is the currently-implemented option, but may be unshippable due to back-compat constraints.
1714+
<dt>''auto'' for size lookup; ''content''<sup>1</sup> for automatic sizing
1715+
<dd>
1716+
The advantage of this is that it will not break existing content:
1717+
a 'flex-basis' keyword for automatic sizing did not exist in the original CR,
1718+
so this option adds a new keyword but does not rename existing functionality.
1719+
It therefore avoids the ''flex: auto'' &ne; ''flex: 1 auto'' inequality.
1720+
</dl>
1721+
1722+
The CSSWG is waiting for feedback from implementers on this issue.
1723+
1724+
<small><sup>1</sup> Alternate keyword suggestions welcome.</small>
1725+
<small><sup>1</sup> Alternate keyword suggestions welcome.</small>
1726+
</div>
17031727

17041728
<p>
17051729
The <i>flex basis</i> is resolved the same way as 'width' in horizontal writing modes [[!CSS21]]:
@@ -3266,8 +3290,15 @@ Changes since the 25 March 2014 LCWD</h3>
32663290
<a href="http://www.w3.org/TR/2014/WD-css-flexbox-1-20140325/">25 March 2014 Last Call Working Draft</a>:
32673291

32683292
<ul>
3293+
<li id="change-201403-flex-basis-auto">
3294+
Introduced extra ''main-size'' keyword to 'flex-basis'
3295+
so that “lookup from main-size property” and “automatic sizing” behaviors
3296+
could each be explicitly specified.
3297+
(Issue <a href="http://dev.w3.org/csswg/css-flexbox-1/issues-lc-20140325#issue-20">20</a>)
3298+
32693299
<li id="change-201403-min-auto-not">
32703300
Fixed error in definition of ''min-height/min-width: auto''.
3301+
(Issue <a href="http://dev.w3.org/csswg/css-flexbox-1/issues-lc-20140325#issue-11">11</a>)
32713302

32723303
<blockquote>
32733304
On a <a>flex item</a> whose 'overflow' is <del>not</del> ''overflow/visible'',

0 commit comments

Comments
 (0)