<?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>22240</bug_id>
          
          <creation_ts>2013-06-03 05:55:15 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify how nested @host @-rules work</short_desc>
          <delta_ts>2013-07-17 22:31:17 +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>INVALID</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>14978</blocked>
          <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>88559</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2013-06-03 05:55:15 +0000</bug_when>
    <thetext>Because of https://www.w3.org/Bugs/Public/show_bug.cgi?id=21242, we can write nested @host @-rules. However it would be better to clarify how nested @host @-rules work.

For example, suppose that we have the following tree:

&lt;hostA&gt;
   #shadow-root
      &lt;hostB&gt;
         #shadow-root
            &lt;style&gt;
            @host { @host { * { border: 1px solid green; } } }
            &lt;/style&gt;
            ....

So how should the above nested @host @-rules work?

I think, at least, we have four options:

(a) The above nested @host @-rules should be applied to hostA,

(b) The above nested @host @-rules should be disallowed. So treat as &quot;@host { * { border: 1px solid green; }&quot;. hostB should have 1px solid green border.

(c) The above nested @host @-rules should be disallowed. Ignore.

(d) Other options...

I would like to know which would be the best option.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90900</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-17 22:31:17 +0000</bug_when>
    <thetext>@host is dead.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>