<?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>18382</bug_id>
          
          <creation_ts>2012-07-24 09:33:00 +0000</creation_ts>
          <short_desc>[Shadow]: ShadowRoot needs the flag to control @host @-rules in a similar way to the apply-author-styles flag.</short_desc>
          <delta_ts>2013-07-17 18:21:31 +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>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>17515</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Takashi Sakamoto">tasak</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dglazkov</cc>
    
    <cc>dominicc</cc>
    
    <cc>morrita</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>71363</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-07-24 09:33:00 +0000</bug_when>
    <thetext>Web developers want to control whether to apply @host @-rules declared in older shadow DOM subtrees when they add their own shadow root to the shadow host.

By using this flag, we don&apos;t need to see whether shadow dom subtrees are inert or not.

The following link is a document about the flag:
https://docs.google.com/document/d/1B39UFwTgAqIXQXwX4S42nvSe7ObJa7_oRMplsIR8WrE/edit</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71414</commentid>
    <comment_count>1</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-24 18:47:08 +0000</bug_when>
    <thetext>I am not sold that this flag is a useful feature. If you&apos;re not planning to use the older shadow root, just don&apos;t include it with &lt;shadow&gt;. If you do, you can stil override its styles.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71439</commentid>
    <comment_count>2</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-07-25 11:04:25 +0000</bug_when>
    <thetext>(In reply to comment #1)
&gt; I am not sold that this flag is a useful feature. If you&apos;re not planning to use
&gt; the older shadow root, just don&apos;t include it with &lt;shadow&gt;. If you do, you can
&gt; stil override its styles.

I agree that I can override the styles. However to do so, I have to see what styles come from @host @-rules declared in older shadow DOM subtrees. I think, web developers might want to just reset all existing @host @-rules.
And I think, I might want to reuse the host styles when I add my own shadow DOM subtree without &lt;shadow&gt;. In the case, I like the host style and just want to replace the shadow DOM subtree. I don&apos;t want to check what @host @-rules are applied and to apply my own @host @-rules.

Best regards,
Takashi Sakamoto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71476</commentid>
    <comment_count>3</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-07-25 23:49:36 +0000</bug_when>
    <thetext>With each additional flag I think there is a danger that the spec becomes too hard to understand.

Applying @host rules could depend on whether the shadow root is included with &lt;shadow&gt;, along with all of the other rules in the stylesheets in the shadow root. I don’t think it is worth letting people special-case @host with a flag.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71480</commentid>
    <comment_count>4</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2012-07-26 02:45:26 +0000</bug_when>
    <thetext>(In reply to comment #3)
&gt; With each additional flag I think there is a danger that the spec becomes too
&gt; hard to understand.
&gt; 
&gt; Applying @host rules could depend on whether the shadow root is included with
&gt; &lt;shadow&gt;, along with all of the other rules in the stylesheets in the shadow
&gt; root. I don’t think it is worth letting people special-case @host with a flag.

Does this mean that just @host @-rule doesn&apos;t depend on whether &lt;shadow&gt; is active or not? 
I mean the case: &quot;when an insertion point or a shadow insertion poing has nothing assigned or distributed to them, the fallback content must be used instead when rendering.&quot;  written in shadow dom spec 5.5 Hosting Multiple Shadow Subtrees.

Best regards,
Takashi Sakamoto</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71527</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-26 22:24:22 +0000</bug_when>
    <thetext>There is an wholly different idea in bug 17515.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71650</commentid>
    <comment_count>6</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-07-30 03:33:50 +0000</bug_when>
    <thetext>(In reply to comment #4)
&gt; (In reply to comment #3)
&gt; &gt; Applying @host rules could depend on whether the shadow root is included with
&gt; &gt; &lt;shadow&gt;, along with all of the other rules in the stylesheets in the shadow
&gt; &gt; root. I don’t think it is worth letting people special-case @host with a flag.
&gt; 
&gt; Does this mean that just @host @-rule doesn&apos;t depend on whether &lt;shadow&gt; is
&gt; active or not? 

I intended it to depend on whether the &lt;shadow&gt; is inert or not. If the &lt;shadow&gt; is inert, @host rules in the older shadow tree would not apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71824</commentid>
    <comment_count>7</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-03 17:55:20 +0000</bug_when>
    <thetext>I think the idea of a separate flag may still be worth discussing, but overloading apply-author-styles as a bit-field is about as foreign and awkward for the Web platform API as one could possibly get. We&apos;re definitely not doing that :)</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>90857</commentid>
    <comment_count>8</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2013-07-17 18:21:31 +0000</bug_when>
    <thetext>There&apos;s no more @host, closing.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>