[Bug 22980] [Shadow]: shadowRoot styles should not match the host element

https://www.w3.org/Bugs/Public/show_bug.cgi?id=22980

--- Comment #5 from Steve Orvell <sorvell@chromium.org> ---
Does this address the selector semantics concern?

1. the host element is in the set of elements that selectors in shadowRoot
styles can match.
2. any selector that does not contain :host cannot match the host element.

If so, this gives us the best of both worlds, e.g.

#container, .rounded { 
  /* matches only elements inside shadowRoot, not the host element */
}
.rounded:host {
  /* matches only the host element if it has the `rounded` class */
}

.special:host > div {
  /* matches div children of the shadowRoot if the host element has a `special`
class */
}

-- 
You are receiving this mail because:
You are the QA Contact for the bug.

Received on Tuesday, 20 August 2013 17:08:25 UTC