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

@JanMiksovsky 

> Generally, I think it's going to be very unusual to attach a shadow root to an element you don't define.

All of my [custom elements](https://github.com/trusktr/infamous) except for one, have styles but no shadow roots and do not distribute any children. Currently I'm applying styles using [JSS](https://github.com/cssinjs/jss) directly to all of their `style=""` attributes (because otherwise they don't reach into shadow roots).

Applying these styles via the custom element definition would be great!

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

Received on Wednesday, 23 January 2019 04:01:31 UTC