Re: [css3-flexbox] min-width & min-height "auto" value -- applies to both axes, or just main axis?

On Mon, Jun 11, 2012 at 2:40 PM, Daniel Holbert <dholbert@mozilla.com> wrote:
> Right now, section 4.4 "Implied Minimum Size of Flex Items" on the
> flexbox ED says:
>
>   # Name:      min-width, min-height
>   [...]
>   # auto
>   #   On a flex item, this keyword indicates
>   #   a minimum size of the min-content size.
>   #   It is intended that this will compute
>   #   to the ‘min-content’ keyword [...]
> http://dev.w3.org/csswg/css3-flexbox/#min-size-auto
>
> This doesn't make any distinction about the orientation of our flexbox.
> (horizontal vs. vertical)
>
> So right now, the spec is calling for all flexbox items to have *both*
> their min-width *and* their min-height default to "min-content".
>
> I'd thought we only wanted this magic for the main axis's min-size
> property, not for both min-size properties. Maybe I misunderstood though?

Yes, the intention is to only have the magic apply in the main axis.
The cross-axis should be allowed to shrink to 0 unless the author has
set an explicit min size in that axis.

I'll have to fix this.

~TJ

Received on Wednesday, 13 June 2012 01:17:29 UTC