nth-child bug in validator

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

nth-child bug in validator

Russ Puskarcik
Hi,

I'm pretty sure this is a bug... I'm getting the following error in the validator (http://jigsaw.w3.org/css-validator/validator):

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

pointing to the following:

.codetable td:nth-child(2){

    width: 50px;

    color: blue;

    }


Which, as far as I know, is correct.

Russ

Reply | Threaded
Open this post in threaded view
|

Re: nth-child bug in validator

Andreas Riddering
If i set the validator to CSS level 2.1 i am getting the same error.
If its set to CSS level 3 everything is green and fine.

As they are declared in CSS 3: https://www.w3.org/TR/css3-selectors/#nth-child-pseudo
but not in CSS 2.1: https://www.w3.org/TR/CSS21/selector.html#first-child (not a single match for pattern "nth")

I think the behaviour of the validator is correct. Can you point out, why you think its a bug?

best regards
Andreas


2016-07-05 22:53 GMT+02:00 Russ Puskarcik <[hidden email]>:
Hi,

I'm pretty sure this is a bug... I'm getting the following error in the validator (http://jigsaw.w3.org/css-validator/validator):

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

pointing to the following:

.codetable td:nth-child(2){

    width: 50px;

    color: blue;

    }


Which, as far as I know, is correct.

Russ