<?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>15224</bug_id>
          
          <creation_ts>2011-12-16 02:54:17 +0000</creation_ts>
          <short_desc>A class name can not be appended to a pseudo-element: p:first-line.some_class_name should be parsed (and reported) as INVALID CSS code</short_desc>
          <delta_ts>2012-09-21 14:42:47 +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.1</component>
          <version>CSS Validator</version>
          <rep_platform>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>9107</dup_id>
          
          <bug_file_loc>http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Ftest.csswg.org%2Fsuites%2Fcss2.1%2F20110323%2Fhtml4%2Fc25-pseudo-elmnt-000.htm&amp;profile=css21&amp;usermedium=all&amp;warning=2&amp;vextwarning=&amp;lang=en</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="Gérard Talbot">info</reporter>
          <assigned_to name="This bug has no owner yet - up for the taking">dave.null</assigned_to>
          <cc>caribou</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>61642</commentid>
    <comment_count>0</comment_count>
    <who name="Gérard Talbot">info</who>
    <bug_when>2011-12-16 02:54:17 +0000</bug_when>
    <thetext>URL of test
-----------

http://test.csswg.org/suites/css2.1/20110323/html4/c25-pseudo-elmnt-000.htm


Relevant chunk of CSS code
--------------------------

p:first-line.some_class_name { ... set of css declarations ...}

should be parsed as INVALID selector by the CSS validator because


CSS 2.1 section 5.10
--------------------

CSS 2.1 states 
&quot;pseudo-elements may only be appended after the last simple selector of the selector&quot;
section 5.10 Pseudo-elements and pseudo-classes
http://www.w3.org/TR/CSS21/selector.html#pseudo-elements


Additional info
---------------

Firefox 8.0 Error console reports this as a parsing error:
&quot;
Warning : A token was found following a pseudo-element, which must be the last part of a selector : « . ».  Set of rules ignored due to a bad selector.
File Source : http://test.csswg.org/suites/css2.1/20110323/html4/c25-pseudo-elmnt-000.htm
Line : 12
&quot;

Opera 11.60 Error console reports this as a parsing error:
&quot;
Inlined stylesheet
A pseudo element must be the last part of the selector.
Line 14:
     p:first-line.two { color: yellow; background: red; }
&quot;

Even CSS 1 states
&quot;
When combined with classes or pseudo-classes, pseudo-elements must be specified at the end of the selector.
&quot;
CSS 1, section 2.5 Pseudo-elements in selectors
http://www.w3.org/TR/CSS1/#pseudo-elements-in-selectors


URL of CSS validation report
----------------------------

http://jigsaw.w3.org/css-validator/validator?uri=http%3A%2F%2Ftest.csswg.org%2Fsuites%2Fcss2.1%2F20110323%2Fhtml4%2Fc25-pseudo-elmnt-000.htm&amp;profile=css21&amp;usermedium=all&amp;warning=2&amp;vextwarning=&amp;lang=en

Expected result
---------------

p:first-line.two should be reported as INVALID CSS code and rejected CSS code.


Actual result
-------------
p:first-line.two { ... } is reported as Valid CSS information



regards, Gérard Talbot</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>74222</commentid>
    <comment_count>1</comment_count>
    <who name="carine bournez">caribou</who>
    <bug_when>2012-09-21 14:42:47 +0000</bug_when>
    <thetext>this is indeed a bug, as already reported.

*** This bug has been marked as a duplicate of bug 9107 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>