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

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

From: Kang-Hao (Kenny) Lu <kanghaol@oupeng.com>
Date: Tue, 11 Sep 2012 15:59:53 +0800
Message-ID: <504EEF79.3070005@oupeng.com>
To: WWW Style <www-style@w3.org>
The current draft treats this paragraph as informative note:

  # If not omitted, a zero <'flex-basis'> component must be either
  # specified with a unit or preceded by both flex ratios. Otherwise it
  # will either be interpreted as one of the flex ratios, or will make
  # the declaration invalid.

. The way I read a spec is that I usually ignore these non-normative
statements and therefore the spec looks like it doesn't talk about how
ambiguous syntax like 'flex: 0 1 0;' is resolved. I suggest the spec say
something like

  | The user agent must parse the first unitless zero as a
  | <'flex-grow'>.

Otherwise, you can make that paragraph normative but that paragraph
itself doesn't read very spec-ish to me...

Web Specialist, Oupeng Browser, Beijing
Try Oupeng: http://www.oupeng.com/
Received on Tuesday, 11 September 2012 08:00:25 UTC

This archive was generated by hypermail 2.4.0 : Friday, 25 March 2022 10:08:21 UTC