Re: [css3-flexbox] clarify the syntax ambiguity around unitless zero in 'flex' shorthand

On 09/11/2012 08:51 PM, Kang-Hao (Kenny) Lu wrote:
>
>    | If not omitted, a zero<'flex-basis'>  component must be either
>    | specified with a unit or preceded by both flex ratios. Otherwise the
>    | user agent must interpret it as one of the flex ratios.
>
> should be enough. (But it all depends on what "component" means... *shrug*)

Ok, so I'm debating between that wording and the following:

   | A unitless zero that is not already preceded by two flex factors
   | is interpreted as a flex factor.
   | To avoid misinterpretation or invalid declarations,
   | authors must specify such lengths with a unit or precede them by both flex ratios.

Thoughts?

~fantasai

Received on Friday, 14 September 2012 21:30:44 UTC