<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>160</bug_id>
          
          <creation_ts>2003-02-27 22:14:28 +0000</creation_ts>
          <short_desc>Pseudo-elements allowed inside selector sequence</short_desc>
          <delta_ts>2013-04-16 03:16:32 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>CSSValidator</product>
          <component>CSS 2.0</component>
          <version>CSS Validator</version>
          <rep_platform>Other</rep_platform>
          <op_sys>other</op_sys>
          <bug_status>REOPENED</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc>http://www.bjoernsworld.de/test/css/pseudo-elements.html</bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Bj">bjoern</reporter>
          <assigned_to name="Philippe Le Hegaret">plh</assigned_to>
          <cc>jukka.k.korpela</cc>
          
          <qa_contact name="qa-dev tracking">www-validator-cvs</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>378</commentid>
    <comment_count>0</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2003-02-27 22:14:28 +0000</bug_when>
    <thetext>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; }.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5754</commentid>
    <comment_count>1</comment_count>
    <who name="Bj">bjoern</who>
    <bug_when>2005-09-07 01:53:48 +0000</bug_when>
    <thetext>Another test case is

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

which is also not allowed.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>5886</commentid>
    <comment_count>2</comment_count>
    <who name="Yves Lafon">ylafon</who>
    <bug_when>2005-09-08 12:55:07 +0000</bug_when>
    <thetext>See on http://qa-dev.w3.org:8001/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>86266</commentid>
    <comment_count>3</comment_count>
    <who name="Jukka K. Korpela">jukka.k.korpela</who>
    <bug_when>2013-04-16 03:16:32 +0000</bug_when>
    <thetext>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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>