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

bug in the CSS grammar definition

From: Manlio Perillo <manlio.perillo@gmail.com>
Date: Sat, 04 Oct 2008 00:23:52 +0200
Message-ID: <48E69B78.6010404@gmail.com>
To: www-style@w3.org

Hi.

I'm implementing a CSS parser in Haskell.
I have completed a draft of the lexer and I have found a bug in the
grammar definition from:
http://www.w3.org/TR/CSS21/grammar.html

The problem is with this rule:
num		[0-9]+|[0-9]*"."[0-9]+


This does not allow negative numbers:
     margin-left: -20px;

I'm not sure if it should allow:
     margin-left: +20px;


I have checked the errata:
http://www.w3.org/Style/css2-updates/CR-CSS21-20070719-errata.html

but this problem is not reported.



Thanks   Manlio Perillo
Received on Saturday, 4 October 2008 05:11:33 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Monday, 27 April 2009 13:55:13 GMT