W3C home > Mailing lists > Public > www-style@w3.org > August 2010

Re: [css3-values] whitespace requirement around + and - in calc()

From: Håkon Wium Lie <howcome@opera.com>
Date: Mon, 9 Aug 2010 21:45:22 +0200
Message-ID: <19552.23250.968506.369501@gargle.gargle.HOWL>
To: "L. David Baron" <dbaron@dbaron.org>
Cc: www-style@w3.org
Also sprach L. David Baron:

 > http://dev.w3.org/csswg/css3-values/#the-calc-min-and-max-functions
 > no longer has the requirement (which I believe used to be in the
 > spec, and which I believe the WG agreed on) that there must be
 > whitespace around the '+' and '-' inside of calc().
 > 
 > (This is needed because '-' is an identifier character in CSS, so
 > 3em-2px tokenizes as a length with number '3' and unit 'em-2px'.)

So, you'd like to change:

  sum     : product [ [ "+" | "-" ] S* product ]*;

to 

  sum     : product [ [ "+" | "-" ] product ]*;

?

-h&kon
              Håkon Wium Lie                          CTO °þe®ª
howcome@opera.com                  http://people.opera.com/howcome
Received on Monday, 9 August 2010 19:46:03 GMT

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