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

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>145357</bug_id>
          
          <creation_ts>2015-05-24 02:28:14 -0700</creation_ts>
          <short_desc>:matches incorrectly matches pseudo elements</short_desc>
          <delta_ts>2020-01-24 00:02:16 -0800</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>CSS</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>206654</dup_id>
          
          <bug_file_loc></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="Elliott Sprehn">esprehn</reporter>
          <assigned_to name="Yusuke Suzuki">ysuzuki</assigned_to>
          <cc>benjamin</cc>
    
    <cc>koivisto</cc>
    
    <cc>ysuzuki</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1097145</commentid>
    <comment_count>0</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2015-05-24 02:28:14 -0700</bug_when>
    <thetext>http://dev.w3.org/csswg/selectors-4/#matches

The spec says:
&quot;Pseudo-elements cannot be represented by the matches-any pseudo-class; they are not valid within :matches().&quot;

&lt;style&gt;
div:matches(::before, ::after) {
    content: &quot;Should not match.&quot;;
}
&lt;/style&gt;

&lt;div&gt;&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097147</commentid>
    <comment_count>1</comment_count>
    <who name="Yusuke Suzuki">ysuzuki</who>
    <bug_when>2015-05-24 05:28:47 -0700</bug_when>
    <thetext>Hi Benjamin, do you have any thought about this?

Is this a solid decision in css-wg, or still controversial?
If it&apos;s a solid decision, we should drop this feature.
But if it&apos;s still discussed and not mature yet, we should keep it until we meet the consensus.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097430</commentid>
    <comment_count>2</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-05-26 14:01:56 -0700</bug_when>
    <thetext>Last time we talked about this, the CSSWG was still bikesheding on the definition of pseudo elements.

Given how insanely bad the CSSWG is, and the value of this feature, I am ok with keeping this &quot;bug&quot; around.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097433</commentid>
    <comment_count>3</comment_count>
    <who name="Elliott Sprehn">esprehn</who>
    <bug_when>2015-05-26 14:04:13 -0700</bug_when>
    <thetext>(In reply to comment #2)
&gt; Last time we talked about this, the CSSWG was still bikesheding on the
&gt; definition of pseudo elements.
&gt; 
&gt; Given how insanely bad the CSSWG is, and the value of this feature, I am ok
&gt; with keeping this &quot;bug&quot; around.

That just means content will depend on it and then other browsers will need to copy your unspec&apos;ed behavior.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1097446</commentid>
    <comment_count>4</comment_count>
    <who name="Benjamin Poulain">benjamin</who>
    <bug_when>2015-05-26 14:22:42 -0700</bug_when>
    <thetext>(In reply to comment #3)
&gt; (In reply to comment #2)
&gt; &gt; Last time we talked about this, the CSSWG was still bikesheding on the
&gt; &gt; definition of pseudo elements.
&gt; &gt; 
&gt; &gt; Given how insanely bad the CSSWG is, and the value of this feature, I am ok
&gt; &gt; with keeping this &quot;bug&quot; around.
&gt; 
&gt; That just means content will depend on it and then other browsers will need
&gt; to copy your unspec&apos;ed behavior.

We made a proposal for a formal definition several months ago.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1610544</commentid>
    <comment_count>5</comment_count>
    <who name="Antti Koivisto">koivisto</who>
    <bug_when>2020-01-24 00:02:16 -0800</bug_when>
    <thetext>

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

    </bug>

</bugzilla>