W3C home > Mailing lists > Public > www-style@w3.org > April 1996

Problem with RGB value syntax

From: Wolfgang Rieger <rieger@bse.de>
Date: Mon, 22 Apr 1996 14:59:11 +0200
To: www-style@www10.w3.org
Message-Id: <317b4fe6.869297@mail.space.net>
There is a problem with the proposed syntax for RGB and RRGGBB values.
Because both id-selector and RGB values are prefixed with '#', it is
not possible to use Lex in a straightforward way to implement the
lexical analyzer.

Reason: '#f00' would be '#' followed by a legal identifier, but '#0f0'
would be '#' and a number ('0') followed by an identifier ('f0').

Because of this conflict it would be necessary to make the lexical
analyzer context-sensitive, i.e. '#' in the selector part of a rule
and '#' in the declaration list would be handled different.

IMHO, it would be better to use a different prefix for RGB values
(e.g. '&').

Opinions?

Greetings

Wolfgang Rieger
Buero fuer Software-Entwicklung           Email: rieger@bse.de
                                          WWW  : http://www.bse.de/
Rosenheimer Str. 214                      Phone: +49 89 497738	
81669 Munich, Germany                     Fax  : +49 89 497738
Received on Monday, 22 April 1996 08:57:19 GMT

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