Bug 112590 - [Shadow]: @host rules applied to nodes without a shadowRoot
Summary: [Shadow]: @host rules applied to nodes without a shadowRoot
Status: RESOLVED DUPLICATE of bug 111281
Alias: None
Product: WebKit
Classification: Unclassified
Component: DOM (show other bugs)
Version: 528+ (Nightly build)
Hardware: Mac OS X 10.8
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2013-03-18 10:14 PDT by Steve Orvell
Modified: 2013-03-18 18:37 PDT (History)
3 users (show)

See Also:


Attachments
reduction (735 bytes, text/html)
2013-03-18 10:14 PDT, Steve Orvell
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Steve Orvell 2013-03-18 10:14:32 PDT
Created attachment 193592 [details]
reduction

An @host rule can match a node without a shadowRoot. This behavior violates the shadowDOM spec which says, "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..." (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.
Comment 1 Takashi Sakamoto 2013-03-18 18:37:46 PDT

*** This bug has been marked as a duplicate of bug 111281 ***