<?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>28522</bug_id>
          
          <creation_ts>2015-04-21 07:27:54 +0000</creation_ts>
          <short_desc>[Shadow] Cascading for trees of no-inner/outer and no-younger/older relationship</short_desc>
          <delta_ts>2015-04-28 04:42:25 +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>All</rep_platform>
          <op_sys>All</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>WONTFIX</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>28552</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Koji Ishii">kojiishi</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>annevk</cc>
    
    <cc>jackalmage</cc>
    
    <cc>mike</cc>
    
    <cc>public-webapps</cc>
    
    <cc>rune</cc>
    
    <cc>tasak</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>119710</commentid>
    <comment_count>0</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-04-21 07:27:54 +0000</bug_when>
    <thetext>This issue should land on CSS Scoping spec, but I think it&apos;s better to discuss here and have some level of common understanding before we go www-style, because complex tree of trees is too much for most members at www-style. If this doesn&apos;t look right, please close and I&apos;ll go www-style.

The Shadow Cascading of CSS Scoping spec[1] defines:
 * Outer wins if inner/outer
 * Younger wins if younger/older

But Takashi and I are finding a few cases where trees have more complex relationships. We should define how cascading occurs in such cases, which wins, or prohibit.

Case 1: Re-distributions
By using multiple and nesting together, re-distribution can cause such relationship. Example:
http://jsbin.com/wabigi
div
  div
  SR-OLDER
    div
      content
      SR-NEST-OF-OLDER
        style ::content * {color:red}
        content
  SR-YOUNGER
    style ::content * {color:green}
    shadow

Case 2: :host and shadow-piercing descendant combinator
The combination of :host and shadow-piercing descendant combinator can select descendants of younger/older trees.

[1] http://dev.w3.org/csswg/css-scoping/#cascading</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119714</commentid>
    <comment_count>1</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-04-21 07:57:37 +0000</bug_when>
    <thetext>My current opinion is:

Case 1: The final destination wins for re-distributions.

Case 2: Prohibit this combination. I think the use cases for the shadow-piercing descendant combinator is mostly &quot;html &gt;&gt;&gt;&quot; or &quot;* &gt;&gt;&gt;&quot;, IIUC.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119725</commentid>
    <comment_count>2</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-04-21 13:32:24 +0000</bug_when>
    <thetext>Takashi found another combination that causes cascading from non-parent/younger/older relationship:

Case 3: ::content /deep/</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119870</commentid>
    <comment_count>3</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-04-24 04:11:22 +0000</bug_when>
    <thetext>A previous discussion at www-style here:
https://lists.w3.org/Archives/Public/www-style/2015Feb/0026.html</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>119967</commentid>
    <comment_count>4</comment_count>
    <who name="Koji Ishii">kojiishi</who>
    <bug_when>2015-04-28 04:42:25 +0000</bug_when>
    <thetext>This is no longer an issue because multiple shadow roots and piercing combinators were both removed.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>