W3C home > Mailing lists > Public > www-style@w3.org > October 2011

Negative numbers in core grammar

From: Anne van Kesteren <annevk@opera.com>
Date: Sat, 01 Oct 2011 11:52:19 +0200
To: "CSS WG" <www-style@w3.org>
Message-ID: <op.v2n21hu164w2qv@annevk-macbookpro.local>
I was asked the other day where the tokenization rules in  
http://www.w3.org/TR/CSS2/syndata.html#tokenization handle negative  
numbers. The production of num is [0-9]+|[0-9]*\.[0-9]+ which seems to  
handle non-negative numbers only. (It does not seem to allow for a "-"  
character, or for a "+" character for that matter.)

I would love to know what I am missing since this definition has not  
changed for well over a decade.


-- 
Anne van Kesteren
http://annevankesteren.nl/
Received on Saturday, 1 October 2011 09:52:50 GMT

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