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

[css3-syntax] Syntax of 'flex' property

From: L. David Baron <dbaron@dbaron.org>
Date: Fri, 17 Feb 2012 11:12:11 -0800
To: www-style@w3.org
Message-ID: <20120217191211.GA19672@pickering.dbaron.org>
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 GMT

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