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

That sounds reasonable to me!  I think I agree that if you want to style the custom element's contents more fully, you should probably be using a shadow tree.  The behavior of styles in shadow trees already works pretty well.

So this brings your idea from #376 fully in line with the idea from this thread; the `{style: "..."}` option just provides a convenient inline mechanism for defining such styles on the element, without having to repeat the tagname over and over if you're defining multiple selectors.  We can then lean on your `@global-compound-selector-rule` (with a better name, of course ^_^) for the declarative side of things, or if people want to provide the styles in their CSS file rather than in their JS file.  (And we can do it in the future; no need to block this thread's idea on figuring out the details of the CSS rule.)

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

Received on Thursday, 31 March 2016 16:46:16 UTC