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


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:

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:

but this problem is not reported.

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

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:27:40 UTC