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

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

--- Comment #6 from Tab Atkins Jr. <jackalmage@gmail.com> ---
(In reply to comment #5)
> 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.

No, saying "X is in the set of elements, but it's impossible to select unless
you tack this pseudo-class on" is identical to "using this pseudo-class adds X
to the set of elements".  Selectors, pseudo-classes included, are just filters. 

Combinators transform the set of elements via whatever relation they define. 
(Pseudo-elements are included in this, just with a syntax that's slightly
different than other combinators.)

We tried to use a combinator to separate the host from the inner elements, but
it was all terribly clumsy. :/

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

Received on Tuesday, 20 August 2013 18:23:20 UTC