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

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

Thanks,
~Daniel

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