<?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>22900</bug_id>
          
          <creation_ts>2013-08-08 04:05:46 +0000</creation_ts>
          <short_desc>[Shadow]: clarify scoping node of styles in shadow trees</short_desc>
          <delta_ts>2015-07-06 08:09:23 +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>Windows NT</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>MOVED</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>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Takashi Sakamoto">tasak</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>91774</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2013-08-08 04:05:46 +0000</bug_when>
    <thetext>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&apos;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.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>121682</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2015-07-06 08:09:23 +0000</bug_when>
    <thetext>Moved to https://github.com/w3c/webcomponents/issues/237</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>