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

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 UTC