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

I don't see any benefit then, over a generic `my-element {}` set on the
global style definition.

What problem is this proposal solving, exactly? It seems too little to
solve only the element itself, that's already possible without needing
ShadowDOM.

`my-element { color: red; }`

What am I missing?

On Tue, Oct 16, 2018 at 2:33 PM Rakina Zata Amni <notifications@github.com>
wrote:

> does that mean my-element > div {} is not stylable so that simple Custom
> Elements without ShadowDOM are still limited ?
>
> Yes, if you want to style children, your best bet would probably be Constructable
> Stylesheets <https://github.com/WICG/construct-stylesheets>, thought that
> needs Shadow DOM on the custom element.
>
> —
> You are receiving this because you commented.
> Reply to this email directly, view it on GitHub
> <https://github.com/w3c/webcomponents/issues/468#issuecomment-430219242>,
> or mute the thread
> <https://github.com/notifications/unsubscribe-auth/AAFO9UU64yt8HuZnRgipXKzRSAeGi3AMks5uldIhgaJpZM4H7C23>
> .
>


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

Received on Tuesday, 16 October 2018 12:50:21 UTC