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

[css3-values] parenthesis preceded by a sign and the grammar of calc()

From: Kang-Hao (Kenny) Lu <kennyluck@csail.mit.edu>
Date: Thu, 10 May 2012 16:44:26 +0800
Message-ID: <4FAB7FEA.8010600@csail.mit.edu>
To: WWW Style <www-style@w3.org>
Unless I am missing something, neither IE9 nor Firefox12 treat
calc(+(1em)) as valid and therefore

  # unit    :
  # ["+"|"-"]? [ NUMBER | DIMENSION | PERCENTAGE | "(" S* sum S* ")" ];

should read

  | unit    :
  | [ [["+"|"-"]? [ NUMBER | DIMENSION | PERCENTAGE ]] |
  |   "(" S* sum S* ")" ];

. Or do we want this to work?


Cheers,
Kenny
Received on Thursday, 10 May 2012 08:44:57 GMT

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