[css3-syntax] Syntax of 'flex' property

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.)

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

-David

-- 
𝄞   L. David Baron                         http://dbaron.org/   𝄂
𝄢   Mozilla                           http://www.mozilla.org/   𝄂

Received on Friday, 17 February 2012 19:12:37 UTC