W3C home > Mailing lists > Public > www-style@w3.org > June 2014

Re: [css-flexbox] min-width/height: min-content defaults for replaced items and overflow containers

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Mon, 9 Jun 2014 14:45:16 -0700
Message-ID: <CAAWBYDDfgWjxv+pXc7CwxemNvo8TMnH=nwUwj-EY4bh+LF=G1A@mail.gmail.com>
To: Daniel Holbert <dholbert@mozilla.com>
Cc: www-style list <www-style@w3.org>
On Mon, Jun 9, 2014 at 2:08 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> On 03/19/2014 12:23 PM, fantasai wrote:
>> The new definition for 'auto' is:
>>   # On a flex item whose overflow is not visible, this keyword
>>   # specifies as the minimum size the smaller of:
>>   #
>>   #  * the min-content size, or
>>   #  * the computed width/height, if that value is definite.
>>   #
>>   # Otherwise, this keyword computes to 0 (unless otherwise
>>   # defined by a future specification).
>
> Hi fantasai & Tab,
>
> The new spec text about "min-[width|height]:auto" no longer seems to be
> specific to the main axis of the flex container. Is that intentional?
>
> In its previous life, "auto" only computed to the min-content size **in
> the main axis min-size property**. Quoting the old spec:
>   # When used as the value of a flex item's min main size
>   # property, this keyword indicates a minimum of the min-content size
> http://www.w3.org/TR/2012/CR-css3-flexbox-20120918/#min-size-auto
>
> However, I don't think the current spec has anything about different
> behavior in main vs. cross axis.  If we want to preserve this as being a
> main-axis-specific thing, the spec probably needs some wording to
> clarify that.
>
> Current spec text is: http://dev.w3.org/csswg/css-flexbox/#min-size-auto

Yeah, that difference is unintentional.  Fixed:

# On a <a>flex item</a> whose 'overflow' is ''overflow/visible'',
# when specified on the <a>flex item's</a> main-axis min-size property,
# this keyword specifies as the minimum size the smallest of:

~TJ
Received on Monday, 9 June 2014 21:46:04 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:39:22 UTC