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 18345 - [Shadow]: @host in a shadow DOM subtree that is not rendered
Summary: [Shadow]: @host in a shadow DOM subtree that is not rendered
Status: RESOLVED FIXED
Alias: None
Product: WebAppsWG
Classification: Unclassified
Component: HISTORICAL - Component Model (show other bugs)
Version: unspecified
Hardware: PC All
: 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-20 16:34 UTC by Dimitri Glazkov
Modified: 2012-08-03 21:50 UTC (History)
0 users

See Also:


Attachments

Description Dimitri Glazkov 2012-07-20 16:34:55 UTC
This is related to bug 17515, but is different enough to warrant its own bug.

Does the @host at-rule apply to the shadow host if it is specified in a shadow DOM subtree that is not currently rendered?

Example:

Troy built a CoolWidget and specified some styling on the host element using @host at-rule in its shadow DOM subtree.

Later, Abed builds a CoolCoolWidget, which is subclassed from CoolWidget, but has a completely different visual appearance. Thus, Abed chooses not to reuse Troy's shadow DOM subtree and does not include a <shadow> element in his widget's shadow DOM subtree.

The question is: does Abed have to now fight Troy's @host at-rules and defensively override them or do they just not apply, since Abed doesn't use any of Troy's tree?
Comment 1 Dimitri Glazkov 2012-08-03 21:50:26 UTC
http://dvcs.w3.org/hg/webcomponents/rev/21d831260212