W3C home > Mailing lists > Public > www-style@w3.org > September 2012

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

From: fantasai <fantasai.lists@inkedblade.net>
Date: Fri, 14 Sep 2012 16:43:42 -0700
Message-ID: <5053C12E.1070600@inkedblade.net>
To: www-style@w3.org
On 09/14/2012 03:40 PM, Daniel Holbert wrote:
> On 09/14/2012 02:30 PM, fantasai wrote:
>>    | 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?
>
> Two nits:
>
> (a) s/flex ratios/flex factors/ at the end there.
>
> (b) It's unclear what "such lengths" refers to, in the second sentence.
>   It suggests that it's referring to something in the first sentence, but
> the first sentence doesn't mention lengths at all -- just factors.
> Maybe replace "such lengths" with "zero-<length>  <flex-basis>  values",
> or something?

Ok, fixed:

   # A unitless zero that is not already preceded by two flex factors must
   # be interpreted as a flex factor. To avoid misinterpretation or invalid
   # declarations, authors must specify a zero <flex-basis> component with
   # a unit or precede it by both flex ratios.

~fantasai
Received on Friday, 14 September 2012 23:44:09 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:21:00 GMT