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: Daniel Holbert <dholbert@mozilla.com>
Date: Mon, 09 Jun 2014 14:08:25 -0700
Message-ID: <53962249.4080908@mozilla.com>
To: www-style list <www-style@w3.org>
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

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

Received on Monday, 9 June 2014 21:08:52 UTC

This archive was generated by hypermail 2.4.0 : Monday, 23 January 2023 02:14:41 UTC