<?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>23162</bug_id>
          
          <creation_ts>2013-09-05 03:32:53 +0000</creation_ts>
          <short_desc>[Shadow]: ::part should be targetable through n-levels of ShadowDOM</short_desc>
          <delta_ts>2014-01-15 11:38:40 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>14978</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Steve Orvell">sorvell</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>hayato</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93020</commentid>
    <comment_count>0</comment_count>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-09-05 03:32:53 +0000</bug_when>
    <thetext>&lt;style&gt;
    ::part(woot) {
      background: green;
    }
  &lt;/style&gt;

Given this style at level n of a composed tree of ShadowDOM tree, this element should match if it&apos;s at level n+m of the composed tree where m is 0 or more.

&lt;div part=&quot;woot&quot;&gt;w00t!&lt;/div&gt;

This would let developers use part to target elements through ShadowDOM without having to worry about whether or not elements are nested inside additional shadowRoots or even if they are in ShadowDOM at all.

These would all match at the document level or inside a shadowRoot:

&lt;style&gt; ::part(woot)&lt;/style&gt;
&lt;div part=&quot;woot&quot;&gt;match, w00t!&lt;/div&gt;
&lt;div&gt;
SR
  &lt;div&gt;
  SR
    &lt;div part=&quot;woot&quot;&gt;match, w00t!&lt;/div&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98491</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-01-15 11:38:23 +0000</bug_when>
    <thetext>Closing this bug because &apos;::part&apos; was dead.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98492</commentid>
    <comment_count>2</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-01-15 11:38:40 +0000</bug_when>
    <thetext>Closing this bug because &apos;::part&apos; was dead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>