Skip to content

Commit 797575b

Browse files
committed
[css-flexbox] Nope, I really did mean to only look at width/height, not flex-basis, when doing min-width:auto. Also added explanatory note.
1 parent 5ee8d37 commit 797575b

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

css-flexbox/Overview.bs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -887,10 +887,12 @@ Implied Minimum Size of Flex Items</h3>
887887
this keyword specifies as the minimum size the smallest of:
888888

889889
<ul>
890-
<li>the computed 'flex-basis', if that value is <a>definite</a>.
891890
<li>if 'flex-basis' is ''main-size'',
892891
the computed 'width' ('height'),
893892
if that value is <a>definite</a>.
893+
<!-- Do *not* use flex-basis normally, as it gets set to 0 regularly.
894+
We need another channel for this kind of signal, and width/height works,
895+
since it's consulted by default. -->
894896
<li>the computed 'max-width' ('max-height'), if that value is <a>definite</a>,
895897
<li>if the item has an intrinsic aspect ratio and a <a>definite</a> 'max-height' ('max-width'),
896898
the width (height) calculated from

css-flexbox/Overview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1022,10 +1022,10 @@ <h3 class="heading settled" data-level=4.5 id=min-size-auto><span class=secno>4.
10221022
this keyword specifies as the minimum size the smallest of:
10231023

10241024
<ul>
1025-
<li>the computed <a class=property data-link-type=propdesc href=#propdef-flex-basis title=flex-basis>flex-basis</a>, if that value is <a data-link-type=dfn href=#definite title=definite>definite</a>.
10261025
<li>if <a class=property data-link-type=propdesc href=#propdef-flex-basis title=flex-basis>flex-basis</a> is <a class=css data-link-type=maybe href=#valdef-flex-basis-main-size title=main-size>main-size</a>,
10271026
the computed <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-width title=width>width</a> (<a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-height title=height>height</a>),
10281027
if that value is <a data-link-type=dfn href=#definite title=definite>definite</a>.
1028+
10291029
<li>the computed <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-width title=max-width>max-width</a> (<a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-height title=max-height>max-height</a>), if that value is <a data-link-type=dfn href=#definite title=definite>definite</a>,
10301030
<li>if the item has an intrinsic aspect ratio and a <a data-link-type=dfn href=#definite title=definite>definite</a> <a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-height title=max-height>max-height</a> (<a class=property data-link-type=propdesc href=http://dev.w3.org/csswg/css2/visudet.html#propdef-max-width title=max-width>max-width</a>),
10311031
the width (height) calculated from

0 commit comments

Comments
 (0)