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

I have a couple questions, though note that I haven't been deeply involved in this discussion so I may be missing some context.

> As we introduced ":host" pseudo-class, we might want to introduce new pseudo class ":element" (tentative name) here. Unless ":element" is specified, a rule never match the custom element.

Why is this needed / preferred vs. just matching simple selectors? That is, why creating a new pseudo-class and forcing `:element(*)` instead of just `*`? `:host` makes sense because it's in stylesheets which can apply to other elements, but it's not the case here, right?

I'm fine if the answer is "it's easier to implement because we reuse the `:host` infrastructure".

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

Received on Monday, 23 July 2018 15:40:01 UTC