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

Re: CSS1 Test Suite (minor updates)

From: Sue Jordan <SJACCT@worldnet.att.net>
Date: Thu, 09 Apr 1998 12:24:56 -0400
Message-ID: <352CF658.265FB2F0@worldnet.att.net>
To: www-style@w3.org
CC: Philippe Le Hegaret <Philippe.Le_Hegaret@sophia.inria.fr>, Eric Meyer <eam3@po.cwru.edu>
Philippe Le Hegaret wrote in response to Sue:
...re: digits as selectors, like   .1 {color: green;}
> >
> > but I thought that name and id tokens had to begin with a letter
> > (A-Za-z), then could be followed by any number of letters, digits,
> > hyphens, underscores, colons, and periods.
>   No, not for CSS1. .1 is allowed. This was a problem :
>   .12em could be a length or a class (depends on the
> context).

According to Section 7.1 (forward-compatible parsing):

"in CSS1, selectors (element names, classes and IDs) can contain only the
characters A-Z, 0-9, and Unicode characters 161-255, plus dash (-); they
cannot start with a dash or a digit; ..."

Forward-thinking recommendation, I'd say. So, Eric *does* need to alter the
test (or text) which uses .1 as a class, and valid CSS1 style sheets are
still valid CSS2 style sheets.

Thanks to eva for the actual cite.

Sue Jordan
Received on Thursday, 9 April 1998 12:26:08 UTC

This archive was generated by hypermail 2.3.1 : Monday, 2 May 2016 14:26:47 UTC