<?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>17674</bug_id>
          
          <creation_ts>2012-07-03 05:44:03 +0000</creation_ts>
          <short_desc>[Shadow]: /select/ combinator not included in rule applicability algorithm</short_desc>
          <delta_ts>2012-08-03 21:43:58 +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>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>16009</blocked>
          <everconfirmed>1</everconfirmed>
          <reporter name="Roland Steiner">rolandsteiner</reporter>
          <assigned_to name="Dimitri Glazkov">dglazkov</assigned_to>
          <cc>dominicc</cc>
          
          <qa_contact>public-webapps-bugzilla</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>69579</commentid>
    <comment_count>0</comment_count>
    <who name="Roland Steiner">rolandsteiner</who>
    <bug_when>2012-07-03 05:44:03 +0000</bug_when>
    <thetext>The exception that a /select/ combinator applies to DOM elements outside the shadow tree, i.e., elements distributed to insertion points (and presumably their descendants), as described in [5.4], is not reflected in the style application rules in [7].</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>69580</commentid>
    <comment_count>1</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-07-03 06:10:59 +0000</bug_when>
    <thetext>This comment is related:

&lt;https://www.w3.org/Bugs/Public/show_bug.cgi?id=17590#c2&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71532</commentid>
    <comment_count>2</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-26 22:36:39 +0000</bug_when>
    <thetext>I think I&apos;ve wandered into some ambiguity here, would appreciate advice on how to fix this.

The fact that the rule applies or does not apply in a given subtree is orthogonal to whether or not this rule can select elements from any other subtree or not.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71620</commentid>
    <comment_count>3</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-27 18:21:32 +0000</bug_when>
    <thetext>Closing for now unless you guys pipe in and say that I shouldn&apos;t.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71648</commentid>
    <comment_count>4</comment_count>
    <who name="Dominic Cooney">dominicc</who>
    <bug_when>2012-07-30 00:36:52 +0000</bug_when>
    <thetext>I think this should be reopened. I’m pasting my comment from &lt;https://www.w3.org/Bugs/Public/show_bug.cgi?id=17590#c2&gt; here:

(snip)

The spec contains this language:

&quot;CSS rules declared in a shadow DOM subtree must not apply in the document
tree&quot;

I think an exception needs to be carved out for @host rules and rules using
/select/.

There is a quasi-exception in the form of a conflicting requirement for @host:

&quot;The declarations in the @host @-rule must be applied to the shadow host of the
shadow DOM subtree in which the style is specified.&quot;

But I think the first requirement needs to be articulated to mention @host and
/select/. It would be nice if the CSS application algorithm could specify all
of this too.

(/snip)

As it stands it seems like

content /select/ .foo

can be optimized to a no-op, because irregardless of what the selector matches, it is outside of the shadow subtree, so it must not apply.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71681</commentid>
    <comment_count>5</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-07-30 21:49:45 +0000</bug_when>
    <thetext>Clearly I need to be more clear in the spec.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>71830</commentid>
    <comment_count>6</comment_count>
    <who name="Dimitri Glazkov">dglazkov</who>
    <bug_when>2012-08-03 21:43:58 +0000</bug_when>
    <thetext>http://dvcs.w3.org/hg/webcomponents/rev/be8a6942330c

Whew! This was harder than I originally thought!</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>