[Bug 23467] [Shadow]: clarify ^ and ^^ combinator

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

--- Comment #6 from Steve Orvell <sorvell@chromium.org> ---
Re: commment #4:

> (a) "div" in a shadow tree cannot match the tree's shadow host.
> (b) "div:host" in a shadow tree cannot match the tree's shadow host.

Yup, agree on both.

> (c) the "div" of "div ^ *" in a shadow tree can match the tree's shadow host?

No, why would it? It cannot because of (a).

> Or we should use PseudoElement? e.g. "div ^ *" is something like ::hat(div, *)?

Can you explain what problem you're solving here?

If the concern is how to write a selector that does: "from a style in a
shadowRoot, match a div in any of the host's shadowRoot's if the host is a div"
then that is:

:host(div:host) ^ div

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

Received on Friday, 25 October 2013 15:33:53 UTC