problem with t040103-ident-03-c.htm?

Hello -

I was looking at one of the tests: http://www.w3.org/Style/CSS/Test/ 
CSS2.1/current/t040103-ident-03-c.htm

On my Firefox (Mac OS X, nightly build of FF 3.0a7pre from  
7/20/2007), it shows up red. I added a note about this test to:

	https://bugzilla.mozilla.org/show_bug.cgi?id=12385.
	CSS idents can't start with "-"

Some of the FF people suggest the CSS test is wrong. In looking at  
the spec (http://www.w3.org/TR/CSS21/syndata.html#value-def- 
identifier), it looks as though a hyphen is allowed at the start of  
an identifier, unless the hyphen is followed by a digit. If I am  
understanding, then perhaps t040103-ident-03-c.htm can be as below.

Or am I wrong?

thanx - ray


<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN">
<html>
  <head>
   <title>CSS 2.1 Test Suite: Characters and Case</title>
   <link rel="help" href="http://www.w3.org/TR/CSS21/syndata.html#q6">
   <style type="text/css">

   .one { color: red; background: white; }
   .-ident, .one { color: green; }

   .two { color: red; background: white; }
   #-ident, .two { color: green; }

   .three { color: green; background: white; }
   .-1ident, .one { color: red; }

   .four { color: green; background: white; }
   #-1ident, .two { color: red; }

   .five { color: green; background: white; }
   .-\1ident, .one { color: red; }

   .six { color: green; background: white; }
   #-\1ident, .two { color: red; }

   </style>
  </head>
  <body>

  <p class="one">This should be green.</p>
  <p class="two">This should be green.</p>
  <p class="three">This should be green.</p>
  <p class="four">This should be green.</p>
  <p class="five">This should be green.</p>
  <p class="six">This should be green.</p>

  </body>
</html>

Received on Tuesday, 24 July 2007 00:44:36 UTC