<?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>22788</bug_id>
          
          <creation_ts>2013-07-24 06:05:49 +0000</creation_ts>
          <short_desc>[Shadow]: Clarify apply-author-styles when styling elements in shadow trees based on host element</short_desc>
          <delta_ts>2014-01-15 06:53: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>PC</rep_platform>
          <op_sys>Windows NT</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>20957</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Takashi Sakamoto">tasak</reporter>
          <assigned_to name="Hayato Ito">hayato</assigned_to>
          <cc>hayato</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>91204</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2013-07-24 06:05:49 +0000</bug_when>
    <thetext>Since styles in shadow trees can select host element, we should clarify apply-author-styles of shadow roots of the host element.

for example,

style id=&quot;style0&quot;
    #host { border: 1px solid blue; }
div
    #shadow-root
        style id=&quot;style1&quot;
            #host { background-color: red; }
        div id=&quot;host&quot;
            #shadow-root[apply-author-styles=true]
                style id=&quot;style2&quot;
                    #host { background-color: green; }
                div

- The shadow root of div#host has apply-author-styles true.
- The shadow root containing div#host has apply-author-styles false.

My concern is whether styles in style#style0 will match div#host or not.

Currently, I think, &quot;match&quot;.

c.f.
https://docs.google.com/document/d/1GWUtAjDUtJ8Ae0Yt3rBVsFmfpfoUa5ALK3WNWCHRtVk/edit?usp=sharing</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>98479</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-01-15 06:53:25 +0000</bug_when>
    <thetext>Closing this because apply-author-styles was gone.

https://www.w3.org/Bugs/Public/show_bug.cgi?id=23625</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>