This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 160 - Pseudo-elements allowed inside selector sequence
Summary: Pseudo-elements allowed inside selector sequence
Status: REOPENED
Alias: None
Product: CSSValidator
Classification: Unclassified
Component: CSS 2.0 (show other bugs)
Version: CSS Validator
Hardware: Other other
: P2 normal
Target Milestone: ---
Assignee: Philippe Le Hegaret
QA Contact: qa-dev tracking
URL: http://www.bjoernsworld.de/test/css/p...
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-02-27 22:14 UTC by Bj
Modified: 2013-04-16 03:16 UTC (History)
1 user (show)

See Also:


Attachments

Description Bj 2003-02-27 22:14:28 UTC
The rule a.foo:before:hover { color: red } is invalid, while the validator 
marks it as beeing valid and incorrectly pretty prints it as a.foo:hover:before 
{ color : red; }.
Comment 1 Bj 2005-09-07 01:53:48 UTC
Another test case is

  P:first-letter P.c { color: red; }

which is also not allowed.
Comment 2 Yves Lafon 2005-09-08 12:55:07 UTC
See on http://qa-dev.w3.org:8001/
Comment 3 Jukka K. Korpela 2013-04-16 03:16:32 UTC
The rule a.foo:before:hover { color: red } passes validation, both using CSS 2.1 profile and using CSS 3 profile. So if the bug was fixed, it has now reappeared.

I noticed this when checking why p:first-line:before passes, despite being invalid. It does not pass if the two-colon syntax for pseudo-elements is used, i.e. p::first-line::before.