W3C home > Mailing lists > Public > www-validator-css@w3.org > July 2016

Re: nth-child bug in validator

From: Andreas Riddering <Andreas.Riddering@t-online.de>
Date: Wed, 6 Jul 2016 10:06:54 +0200
Message-ID: <CAE2bfVZvffgymmcq_Vd106qTScr0kpSq3huoN8yC4rTxBprrfA@mail.gmail.com>
To: Russ Puskarcik <rpuskarcik@gmail.com>
Cc: www-validator-css@w3.org
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 <rpuskarcik@gmail.com>:

> 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
>
>
Received on Wednesday, 6 July 2016 08:08:08 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 6 July 2016 08:08:12 UTC