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...
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-03-12 01:16 UTC by Dominic Cooney
Modified: 2012-03-14 07:28 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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: http://dvcs.w3.org/hg/webcomponents/rev/ae13e1f7e155
Comment 3 Dominic Cooney 2012-03-14 07:28:42 UTC
Perfectly clear now. Thanks!