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 17052 - [Shadow]: Make styles scoped to shadow DOM subtrees by default
Summary: [Shadow]: Make styles scoped to shadow DOM subtrees by default
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: 17050
  Show dependency treegraph
 
Reported: 2012-05-14 22:09 UTC by Dimitri Glazkov
Modified: 2012-05-15 19:53 UTC (History)
0 users

See Also:


Attachments

Description Dimitri Glazkov 2012-05-14 22:09:32 UTC
"The effect of this algorithm is that any unscoped styles, declared in a shadow DOM subtrees, are applied neither to document nor the subtree in which they are declared."

This is proven to be confusing and weird. Instead, we should change to:

1) <style> elements are not ignored, but instead are automatically scoped to the shadow DOM subtree
2) <style scoped> elements work just as spec'd for a document tree, instead of having a special behavior in relation to shadow DOM subtree
Comment 1 Dimitri Glazkov 2012-05-15 19:53:34 UTC
http://dvcs.w3.org/hg/webcomponents/rev/689a1cf5ec4c