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

@emilio CSS Scoping you quoted says:
> The :host pseudo-class, when evaluated in the context of a shadow tree, matches the shadow tree’s shadow host. In any other context, it matches nothing.

means if `:host > span` is evaluated in the context of a shadow tree, `:host` matches its shadow host, and `>` means its immediate children (relationship), which traverses into its shadow tree because the context is the shadow tree, and then finds `span`.

-- 
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-371456104

Received on Thursday, 8 March 2018 11:20:44 UTC