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 15220 - [Shadow]: Specify a way to select host element in CSS
Summary: [Shadow]: Specify a way to select host element in CSS
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: P3 normal
Target Milestone: ---
Assignee: Dimitri Glazkov
QA Contact: public-webapps-bugzilla
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: 16009
  Show dependency treegraph
 
Reported: 2011-12-15 23:33 UTC by Dimitri Glazkov
Modified: 2012-03-22 21:23 UTC (History)
3 users (show)

See Also:


Attachments

Description Dimitri Glazkov 2011-12-15 23:33:03 UTC
Perhaps a ":host" pseudoclass? How will this work with multiple shadow trees?
Comment 1 Dimitri Glazkov 2012-01-10 00:08:07 UTC
The gist of the problem:

* If we allow addressing shadow host in scoped stylesheets in shadow DOM subtree, we are creating a situation where some rules would step outside of the shadow DOM subtree, thus making things rather confusing.

* If we don't allow this, we have no way to style a shadow host from a shadow DOM subtree. 

At this point, I think the latter is less evil than the former and pick it.
Comment 2 Dimitri Glazkov 2012-03-09 23:59:24 UTC
Need to modify the rule applicability algorithm to allow rules with certain selectors to be applicable in the document.
Comment 3 Dimitri Glazkov 2012-03-10 00:23:13 UTC
Tab, is ":host" a good name? Anything I can crib from Selectors 4?
Comment 4 Dimitri Glazkov 2012-03-16 17:26:52 UTC
Going with ":host". Loook out! :P
Comment 5 Dimitri Glazkov 2012-03-22 21:23:52 UTC
http://dvcs.w3.org/hg/webcomponents/rev/cd9385cd3842