Re: [w3c/webcomponents] Provide a lightweight mechanism to add styles to a custom element (#468)

@TakayoshiKochi @annevk

No. I think there is misunderstanding there.

A style defined in a shadow tree never applies to host's descendants, except for `::slotted` is used,
because host's children are NOT `:host`'s children from CSS's perspective here.

In case of ":host > span", a selector matching should not traverse into the host's children.
Instead, it should traverse into shadow root's children for ":host > span".

We never mix host's children and shadow root's children here.
":host > span" never matches the shadow host's children. It matches only the shadow root's children.

I believe this matches the Blink's behavior.


-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/webcomponents/issues/468#issuecomment-371391299

Received on Thursday, 8 March 2018 06:18:39 UTC