Re: nth-child bug in validator
Andreas Riddering <[email protected]> Wed, 6 Jul 2016 10:06:54 +0200
| Newsgroups | gmane.org.w3c.validator.css |
|---|---|
| Message-ID | <CAE2bfVZvffgymmcq_Vd106qTScr0kpSq3huoN8yC4rTxBprrfA@mail.gmail.com> |
--001a114410eed4f68c0536f30fcc Content-Type: text/plain; charset=UTF-8 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 <[email protected]>: > 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 > > --001a114410eed4f68c0536f30fcc Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable <div dir=3D"ltr"><div><div><div>If i set the validator to CSS level 2.1 i a= m getting the same error.<br></div>If its set to CSS level 3 everything is = green and fine.<br><br></div>As they are declared in CSS 3: <a href=3D"http= s://www.w3.org/TR/css3-selectors/#nth-child-pseudo" target=3D"_blank">https= ://www.w3.org/TR/css3-selectors/#nth-child-pseudo</a><br></div><div>but not= in CSS 2.1: <a href=3D"https://www.w3.org/TR/CSS21/selector.html#first-chi= ld" target=3D"_blank">https://www.w3.org/TR/CSS21/selector.html#first-child= </a> (not a single match for pattern "nth")<br><br></div><div>I t= hink the behaviour of the validator is correct. Can you point out, why you = think its a bug?<br><br></div><div>best regards<br></div><div>Andreas<br></= div><div><br></div><div class=3D"gmail_extra"><br><div class=3D"gmail_quote= ">2016-07-05 22:53 GMT+02:00 Russ Puskarcik <span dir=3D"ltr"><<a href= =3D"mailto:[email protected]" target=3D"_blank">[email protected]</a>= ></span>:<br><blockquote class=3D"gmail_quote" style=3D"margin:0 0 0 .8e= x;border-left:1px #ccc solid;padding-left:1ex"><div dir=3D"ltr"><div><div><= div>Hi,<br><br></div>I'm pretty sure this is a bug... I'm getting t= he following error in the validator (<a href=3D"http://jigsaw.w3.org/css-va= lidator/validator" target=3D"_blank">http://jigsaw.w3.org/css-validator/val= idator</a>):<br><br>Unknown pseudo-element or pseudo-class :nth-child<br><b= r></div>pointing to the following:<br><br>.codetable td:nth-child(2){ <p style=3D"margin:0px;text-indent:0px">=C2=A0=C2=A0=C2=A0 width: 50px;</p> <p style=3D"margin:0px;text-indent:0px">=C2=A0=C2=A0=C2=A0 color: blue;</p> <p style=3D"margin:0px;text-indent:0px">=C2=A0=C2=A0=C2=A0 }</p> <p style=3D"margin:0px;text-indent:0px"><br></p>Which, as far as I know, is= correct.<span><font color=3D"#888888"><br><br></font></span></div><span><f= ont color=3D"#888888">Russ<br><br></font></span></div> </blockquote></div><br></div></div> --001a114410eed4f68c0536f30fcc--