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 16318 - [Shadow]: Clarify whether apply-author-styles leaks rules across shadow DOM trees
Summary: [Shadow]: Clarify whether apply-author-styles leaks rules across shadow DOM t...
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
Depends on:
Blocks: 16009
  Show dependency treegraph
Reported: 2012-03-12 01:16 UTC by Dominic Cooney
Modified: 2012-03-14 07:28 UTC (History)
0 users

See Also:


Description Dominic Cooney 2012-03-12 01:16:25 UTC
The algorithm at the start of section 7 "is used to determine whether any given rule is applicable to any DOM node".

Emphasis on *any*.

Per step 2.3.1, If RULE is an author style, in the case TREE is a shadow DOM subtree, if TREE has the apply-author-styles flag is set for TREE, RULE is applicable to NODE.

Does this mean that apply-author-styles should bleed styles from one unrelated, sibling shadow tree to another? This is probably not what is intended and should be clarified.

I think this needs to be more specific. In the case of nested (not stacked) shadow trees, when the outer shadow tree contains <style scoped> and the inner shadow tree has apply-author-styles, do the styles from the outer shadow tree apply to the inner one? Or does apply-author-styles reach into the document? Does it always reach into the document (ie does whether the outer shadow tree have apply-author-styles have any effect on the inner shadow tree?)
Comment 1 Dimitri Glazkov 2012-03-12 19:12:53 UTC
Oh I see. Need to know the origin of the RULE before making any decisions.
Comment 2 Dimitri Glazkov 2012-03-13 21:17:50 UTC
I think I've got it:
Comment 3 Dominic Cooney 2012-03-14 07:28:42 UTC
Perfectly clear now. Thanks!