<?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>23061</bug_id>
          
          <creation_ts>2013-08-26 02:29:05 +0000</creation_ts>
          <short_desc>[Shadow]: Should be able to override ::content styles in shadow root style sheet from the document</short_desc>
          <delta_ts>2014-05-29 08:30:55 +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>FIXED</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>23062</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>92559</commentid>
    <comment_count>0</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2013-08-26 02:29:05 +0000</bug_when>
    <thetext>Suppose that we have a ::content style rule(rule1) in a shadow tree and that the rule matches a child of a shadow host which hosts the shadow tree.

We also have some rule (rule2) declared in document and the rule matches the child of a shadow host. 

So,
- If rule2 has the same or higher specificity than rule1, rule2 wins.
- Otherwise, rule1 wins.

e.g. http://jsbin.com/obazat/1/edit

This requirement comes from http://crbug.com/274059</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>106971</commentid>
    <comment_count>1</comment_count>
    <who name="Hayato Ito">hayato</who>
    <bug_when>2014-05-29 08:30:55 +0000</bug_when>
    <thetext>I think css-scoping spec should have address that.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>