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

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

--- Comment #2 from Takashi Sakamoto <tasak@google.com> ---
I changed the doc permisson.

I would like to confirm:
> div ^ div: the cell for div#b and style2 should not match. This is because from style2's perspective, div#b is not in a shadowRoot. There are a number of other incorrect matches in this and the other tables that seem like the same mistake.

The style2 is in the oldest shadow root hosted by div#host. So div#b is in a
shadow root.

> div:host tables: there should be no matches for any of these because div:host should not match the host node. My understanding is that :host matches the host element iff there is no selector to the left (possibly this is not true if it's inside a css function).

This is one of topics I would like to discuss.
So "div:host ^ *" and "div:host ^^ *" should not match any elements. Is it ok?

I mean,
(1) div ^ * ==> we can specify any element in a shadow tree when the shadow
tree's shadow host is div.
(2) div:host ==> we cannot specify div + shadow host.

So "^" and "^^" provides another way to specify shadow host (different from
:host).

I'm afraid that this behavior confuses web developers.

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

Received on Thursday, 24 October 2013 01:47:17 UTC