<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>112590</bug_id>
          
          <creation_ts>2013-03-18 10:14:32 -0700</creation_ts>
          <short_desc>[Shadow]: @host rules applied to nodes without a shadowRoot</short_desc>
          <delta_ts>2013-03-18 18:37:46 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>DOM</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>Mac</rep_platform>
          <op_sys>OS X 10.8</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>111281</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Steve Orvell">sorvell</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>dominicc</cc>
    
    <cc>tasak</cc>
    
    <cc>webcomponents-bugzilla</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>857243</commentid>
    <comment_count>0</comment_count>
      <attachid>193592</attachid>
    <who name="Steve Orvell">sorvell</who>
    <bug_when>2013-03-18 10:14:32 -0700</bug_when>
    <thetext>Created attachment 193592
reduction

An @host rule can match a node without a shadowRoot. This behavior violates the shadowDOM spec which says, &quot;The declarations of the rules in a @host @-rule must only be matched against the shadow host of the shadow tree in which the style is specified...&quot; (https://dvcs.w3.org/hg/webcomponents/raw-file/tip/spec/shadow/index.html#host-at-rule).

If a div is given a shadowRoot containing an @host rule that uses the * selector specifying a set of styles, that div and all subsequent divs will have the specified set of styles applied. According to the spec, only the div with the shadowRoot should have the @host styling applied to it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>857843</commentid>
    <comment_count>1</comment_count>
    <who name="Takashi Sakamoto">tasak</who>
    <bug_when>2013-03-18 18:37:46 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 111281 ***</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="0"
              isprivate="0"
          >
            <attachid>193592</attachid>
            <date>2013-03-18 10:14:32 -0700</date>
            <delta_ts>2013-03-18 10:14:32 -0700</delta_ts>
            <desc>reduction</desc>
            <filename>host-reduction.html</filename>
            <type>text/html</type>
            <size>735</size>
            <attacher name="Steve Orvell">sorvell</attacher>
            
              <data encoding="base64">PCFET0NUWVBFIGh0bWw+CjxodG1sPgo8aGVhZD4KICA8dGl0bGU+SG9zdCBTdHlsaW5nPC90aXRs
ZT4KPC9oZWFkPgo8Ym9keT4KICAKICA8ZGl2PkknbSBkaXYgYSB3aXRob3V0IGEgc2hhZG93Um9v
dCBhYm92ZSBhIGRpdiB3aXRoIGEgc2hhZG93Um9vdC4KICAgIEkgZXhwZWN0IHRvIGhhdmUgbm8g
YmFja2dyb3VuZCBjb2xvci48L2Rpdj4KICAKICA8YnI+CiAgCiAgPGRpdiBpZD0iaG9zdCI+CiAg
ICBJJ20gYSBkaXYgd2l0aCBhIHNoYWRvd1Jvb3QgdXNpbmcgYW4gQGhvc3Qgc3R5bGUgdGhhdCBh
cHBsaWVzIHRvICogdG8gbWFrZQogICAgbXkgYmFja2dyb3VuZCByZWQuCiAgPC9kaXY+CiAgCiAg
PGJyPgogIAogIDxkaXY+SSdtIGRpdiBhIHdpdGhvdXQgYSBzaGFkb3dSb290IGJlbG93IGEgZGl2
IHdpdGggYSBzaGFkb3dSb290LgogICAgSSBleHBlY3QgdG8gaGF2ZSBubyBiYWNrZ3JvdW5kIGNv
bG9yLjwvZGl2PgogIAogIDxwPkknbSBhIHAgd2l0aG91dCBzaGFkb3dET00uIEkgZXhwZWN0IHRv
IGhhdmUgbm8gYmFja2dyb3VuZCBjb2xvci48L3A+CiAgCiAgPHNjcmlwdD4KICAgIHZhciByb290
ID0gaG9zdC53ZWJraXRDcmVhdGVTaGFkb3dSb290KCk7CiAgICByb290LmlubmVySFRNTCA9ICc8
c3R5bGU+QGhvc3QgeyAqIHsgYmFja2dyb3VuZDogcmVkOyB9IH08L3N0eWxlPicgKwogICAgICAn
PGNvbnRlbnQ+PC9jb250ZW50Pic7CiAgPC9zY3JpcHQ+CjwvYm9keT4KCjwvaHRtbD4K
</data>

          </attachment>
      

    </bug>

</bugzilla>