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 18454 - [Shadow]: Define how apply-author-styles affects sibling selectors
Summary: [Shadow]: Define how apply-author-styles affects sibling selectors
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC Windows NT
: P2 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16009
  Show dependency treegraph
 
Reported: 2012-07-31 23:04 UTC by Tony Ross [MSFT]
Modified: 2012-08-07 22:42 UTC (History)
0 users

See Also:


Attachments

Description Tony Ross [MSFT] 2012-07-31 23:04:24 UTC
Per the current spec, authors can set the apply-author-styles flag to true to allow CSS selectors from the document to match content in the shadow sub tree. However, the spec does not call out how this impacts the application of sibling selectors (and nth-child selectors, etc.) for direct children of the ShadowRoot. 

Specifically, are the children of the ShadowRoot treated as an independent collection from the children of the shadow host for selector matching? This seems to be the implied effect, though alternatives like treating the ShadowRoot children as occurring before or after the children of the shadow host could be considered.

Either way, the spec should probably explicitly define this behavior.
Comment 1 Dimitri Glazkov 2012-08-01 16:37:58 UTC
Yes, this has been brought up in discussions with developers trying Shadow DOM. Need to be specific here.
Comment 2 Dimitri Glazkov 2012-08-07 22:42:00 UTC
http://dvcs.w3.org/hg/webcomponents/rev/215cb3ebda8f