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

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

From: Daniel Holbert <dholbert@mozilla.com>
Date: Thu, 04 Dec 2014 13:20:57 -0800
Message-ID: <5480D039.8020406@mozilla.com>
To: www-style list <www-style@w3.org>
CC: "Tab Atkins Jr." <jackalmage@gmail.com>
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

Thanks,
~Daniel
Received on Thursday, 4 December 2014 21:21:25 UTC

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