W3C home > Mailing lists > Public > www-validator-css@w3.org > January 2007

:last-child pseudo element

From: Daniel Lorch <daniel@lorch.cc>
Date: Wed, 03 Jan 2007 16:21:35 +0100
Message-ID: <459BC9FF.5010806@lorch.cc>
To: www-validator-css@w3.org


It seems that with a recent update, the validator now choses to validate
against CSS version 2.1 by default. When I validate my stylesheet, this
gives be an "Unknown pseudo-element or pseudo-class :last-child" error
message, since that pseudo element is only defined in CSS 3. Is there a
way to specify the CSS version used (something like a DTD for CSS?). I
wasn't able to find anything, neither in Google nor in the specs (maybe
I wasn't reading carefully enough). Could someone please point me in the
right direction?

Here's a link to the validation page:


If I change "profile" to "css3", the stylesheet will pass. This really
bugs me, since my website is valid XHTML 1.0 Strict (even with
application/xhtml+xml), it has a valid CSS 3.0 stylesheet, a valid RSS
2.0 feed, has microformats embedded and was designed with accessibility
in mind. I'm a total webstandards junkie and it really, really annoys me
that I'm getting an error message here. Please someone put me out of my
mysery :)

Received on Wednesday, 3 January 2007 17:50:44 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:40:43 UTC