Re: CSS1 Test Suite (minor updates)

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):
http://www.w3.org/TR/REC-CSS1#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