W3C home > Mailing lists > Public > www-validator-css@w3.org > November 2002

Bug: Validator allows pseudo-elements on invalid places

From: Bjoern Hoehrmann <derhoermi@gmx.net>
Date: Tue, 05 Nov 2002 03:32:51 +0100
To: www-validator-css@w3.org
Message-ID: <3de02d3b.90469037@smtp.bjoern.hoehrmann.de>

Hi,

  The following ruleset is invalid

    a.foo:before:hover { color: red }

because the pseudo-element ::before must occur only after a sequence of
simple collectors, thus 

    a.foo:hover:before { color: red }

would be valid. The Validator does not complain about the error and even
worse it repairs the error in the pretty printer, converting 

    a.foo:before:hover { color: red } /* to */
    a.foo:hover:before { color: red }

regards.
Received on Monday, 4 November 2002 21:32:38 GMT

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