This is an archived snapshot of W3C's public bugzilla bug tracker, decommissioned in April 2019. Please see the home page for more details.

Bug 23162 - [Shadow]: ::part should be targetable through n-levels of ShadowDOM
Summary: [Shadow]: ::part should be targetable through n-levels of ShadowDOM
Status: RESOLVED WONTFIX
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Hayato Ito
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 14978
  Show dependency treegraph
 
Reported: 2013-09-05 03:32 UTC by Steve Orvell
Modified: 2014-01-15 11:38 UTC (History)
1 user (show)

See Also:


Attachments

Description Steve Orvell 2013-09-05 03:32:53 UTC
<style>
    ::part(woot) {
      background: green;
    }
  </style>

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

<div part="woot">w00t!</div>

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:

<style> ::part(woot)</style>
<div part="woot">match, w00t!</div>
<div>
SR
  <div>
  SR
    <div part="woot">match, w00t!</div>
Comment 1 Hayato Ito 2014-01-15 11:38:23 UTC
Closing this bug because '::part' was dead.
Comment 2 Hayato Ito 2014-01-15 11:38:40 UTC
Closing this bug because '::part' was dead.