W3C home > Mailing lists > Public > www-validator-css@w3.org > September 2008

Unknown pseudo-element or pseudo-class :nth-child

From: Robert Stuart <robertStuart@crystalMatrixSoftware.com>
Date: Tue, 23 Sep 2008 17:33:36 -0400
Message-Id: <D8FBFA32-A79E-401D-924A-3EED03E64011@crystalMatrixSoftware.com>
To: www-validator-css@w3.org

Hi all,
	
Using
http://qa-dev.w3.org:8001/css-validator/validator
Or
http://jigsaw.w3.org/css-validator/validator

  this css http://xmsi.com/temp.css

body  {
margin : 0 0 0 0;
padding : 0 0 0 0;
}

tr:nth-child(odd) {
     background-color: #ddddff;
     color:inherit
}

tr:nth-child(2n+1) {
     background-color: #ddddff;
     color:inherit
}


and choosing to use CSS3 I get these errors

Unknown pseudo-element or pseudo-class :nth-child
Unrecognized  2n+1)

I think it's valid based on
http://www.w3.org/TR/css3-selectors/#nth-child-pseudo

Is this a bug or am I doing something stupid?

Bob Stuart
RobertStuart@crystalMatrixSoftware.com
Received on Wednesday, 24 September 2008 10:03:12 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Wednesday, 27 June 2012 00:14:21 GMT