<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://www.w3.org/Bugs/Public/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4"
          urlbase="https://www.w3.org/Bugs/Public/"
          
          maintainer="sysbot+bugzilla@w3.org"
>

    <bug>
          <bug_id>16318</bug_id>
          
          <creation_ts>2012-03-12 01:16:25 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify whether apply-author-styles leaks rules across shadow DOM trees</short_desc>
          <delta_ts>2012-03-14 07:28:42 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebAppsWG</product>
          <component>HISTORICAL - Component Model</component>
          <version>unspecified</version>
          <rep_platform>PC</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          <blocked>16009</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Dominic Cooney">dominicc</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>65334</commentid>
    <comment_count>0</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-03-12 01:16:25 +0000</bug_when>
    <thetext>The algorithm at the start of section 7 &quot;is used to determine whether any given rule is applicable to any DOM node&quot;.

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 &lt;style scoped&gt; 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?)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65368</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-12 19:12:53 +0000</bug_when>
    <thetext>Oh I see. Need to know the origin of the RULE before making any decisions.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65464</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-03-13 21:17:50 +0000</bug_when>
    <thetext>I think I&apos;ve got it: http://dvcs.w3.org/hg/webcomponents/rev/ae13e1f7e155</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>65504</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-03-14 07:28:42 +0000</bug_when>
    <thetext>Perfectly clear now. Thanks!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>