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

Re: [css3-syntax] Syntax of 'flex' property

From: Tab Atkins Jr. <jackalmage@gmail.com>
Date: Fri, 17 Feb 2012 13:16:23 -0800
Message-ID: <CAAWBYDAbbTuDdwLEKWJVwoHC0cKOCBK8NAP8ZV95jHo=0yOCNQ@mail.gmail.com>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
On Fri, Feb 17, 2012 at 11:12 AM, L. David Baron <dbaron@dbaron.org> wrote:
> http://dev.w3.org/csswg/css3-flexbox/#flexibility currently defines
> the syntax of the 'flex' property as:
>
>  Value: [[ <pos-flex> <neg-flex>? ]? && [<preferred-size>]?] | none
>
> This allows an empty value since the left side of the | reduces to
> a? && b?.
>
> I suspect what was intended was simply to use || without any use of
> ? marks on its subparts, i.e.:
>
>  Value: [ [ <pos-flex> <neg-flex>? ] || <preferred-size> ] | none
>
> which allows one or both in either order, but doesn't allow neither.
>
> (This is in response to a question from Daniel Holbert to me about
> what the syntax meant.)

This was caused by simply copypasting the flex() grammar, where it was
*intentional* that everything could be omitted.

Fixed.

> (Also, a few paragraphs below there's a typo "specifiex".)

Fixed.

~TJ
Received on Friday, 17 February 2012 21:17:13 GMT

This archive was generated by hypermail 2.3.1 : Tuesday, 26 March 2013 17:20:50 GMT