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 22900 - [Shadow]: clarify scoping node of styles in shadow trees
Summary: [Shadow]: clarify scoping node of styles in shadow trees
Status: RESOLVED MOVED
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:
 
Reported: 2013-08-08 04:05 UTC by Takashi Sakamoto
Modified: 2015-07-06 08:09 UTC (History)
0 users

See Also:


Attachments

Description Takashi Sakamoto 2013-08-08 04:05:46 UTC
We are now trying to apply styles in shadow trees to a shadow host which hosts the shadow trees.

So if we have no style scoped in a treescope containing the shadow host, we will use the treescope root node.

However, if we have some style scoped and the shadow host is affected by the style scoped, how should we treat styles in shadow trees?

I think, we have two choices:

Idea 1: stylesheets in shadow trees are treated as if their scoping node is a
containing treescope, style scoped always wins.

Idea 2: stylesheets in shadow trees are treated as if their scoping node is the
same as the style scoped's scoping node. The scoping node is the first one when
walking up from the shadow host.

c.f.
https://docs.google.com/document/d/1-rTZa3gtTV-IbdYVtVVX0n_rhgSWLr6j7okJhsmMH0A/edit?usp=sharing

I would like to implement Idea 2.
Comment 1 Hayato Ito 2015-07-06 08:09:23 UTC
Moved to https://github.com/w3c/webcomponents/issues/237