W3C home > Mailing lists > Public > www-style@w3.org > January 2015

Re: [css-flexbox] "used flex basis of 'auto'" needs s/auto/content/

From: fantasai <fantasai.lists@inkedblade.net>
Date: Thu, 08 Jan 2015 12:56:09 -0800
Message-ID: <54AEEEE9.90108@inkedblade.net>
To: www-style@w3.org
On 12/04/2014 01:20 PM, Daniel Holbert wrote:
> The Flexbox ED section 9.2 step 3 has text about "auto" in the used
> flex-basis, in cases B,C,D,E. I believe each of those mentions really
> wants to say "content.
>
> Here's the chunk that I believe needs changing:
>   # B. If the flex item has [...]
>   #   a used flex basis of 'auto', and
>   #   [...]
>   # C. If the used flex basis is 'auto' [...]
>   # D. Otherwise, if the used flex basis is 'auto' [...]
>   # E. Otherwise, lay out the item into the available space
>   #    using its used flex basis [...] treating [...] auto
>   #    as max-content.
>
> Link: http://dev.w3.org/csswg/css-flexbox/#algo-main-item
>
> I think in each of those cases, we really want to say "content" instead
> of "auto". With the new "flex-basis: content" keyword, I believe it
> should actually be *impossible* to have a used 'flex-basis' of auto.
> The current "flex-basis" spec text says that
> "flex-basis:auto;width:auto" produces a used value of "content", not
> "auto" -- here's the relevant quote for that:
>   # The auto keyword retrieves the value of the main size property.
>   # If that value is also auto, then the used value is 'content'.
> http://dev.w3.org/csswg/css-flexbox/#auto

Just checked in fixes for these. Hopefully all correct now.

~fantasai
Received on Thursday, 8 January 2015 20:57:36 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:50 UTC