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

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

--- Comment #4 from Takashi Sakamoto <tasak@google.com> ---
Thank you.

So I have another concern about ^ and ^^.

Suppose that we have "div ^ *".

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

div[id=host]
    #shadow-root
        style
            div { border: 1px solid green; }


So div#host's border color should not green. This means, [tag] and [shadow
host] has no intersection.

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

Because of no intersection between [tag] and [shadow host], "div:host" cannot
match any shadow hosts.

I think, we have already agreed with the above (a) and (b).
So I'm thinking of the following (c).

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

If the div can match the shadow host, [tag] and [shadow host] has some
intersection... 
So (a) and (b) should match?

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

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

Received on Friday, 25 October 2013 06:18:52 UTC