<?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>212049</bug_id>
          
          <creation_ts>2020-05-18 15:17:06 -0700</creation_ts>
          <short_desc>:is() / :where() parsing allows breaking shadow tree encapsulation</short_desc>
          <delta_ts>2024-02-08 13:15:40 -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>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>NEW</bug_status>
          <resolution></resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>BrowserCompat, InRadar, WPTImpact</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>148695</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Emilio Cobos Álvarez (:emilio)">emilio</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>ahmad.saleem792</cc>
    
    <cc>bfulgham</cc>
    
    <cc>koivisto</cc>
    
    <cc>rniwa</cc>
    
    <cc>simon.fraser</cc>
    
    <cc>webkit-bug-importer</cc>
    
    <cc>zalan</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1653773</commentid>
    <comment_count>0</comment_count>
    <who name="Emilio Cobos Álvarez (:emilio)">emilio</who>
    <bug_when>2020-05-18 15:17:06 -0700</bug_when>
    <thetext>I&apos;m adding some tests in https://bugzilla.mozilla.org/show_bug.cgi?id=1632647. But TLDR, these shouldn&apos;t probably parse, or if you disagree they probably shouldn&apos;t match:

  ::part(foo):is([attr=&apos;value&apos;])
  :host(:is(div .foo))</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1958420</commentid>
    <comment_count>1</comment_count>
    <who name="Ahmad Saleem">ahmad.saleem792</who>
    <bug_when>2023-05-27 09:56:23 -0700</bug_when>
    <thetext>Following WPT test was pushed as part of Mozilla bug: https://github.com/web-platform-tests/wpt/pull/23711/files

and we are only failing single test:

https://wpt.fyi/results/css/selectors/is-where-parsing.html?label=master&amp;label=experimental&amp;aligned&amp;q=is-where-parsing.html

&gt;&gt;&gt; Nested inside :host, with combinators

Don&apos;t know whether we have it as separate tracking or not but still adding &apos;BrowserCompat&apos; and &quot;WPTImpact&apos; tags for future tracking.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>2011873</commentid>
    <comment_count>2</comment_count>
    <who name="Radar WebKit Bug Importer">webkit-bug-importer</who>
    <bug_when>2024-02-08 13:15:40 -0800</bug_when>
    <thetext>&lt;rdar://problem/122574812&gt;</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>