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

@nazar-pc Thanks for pointing that out. Maybe we can have both?

```js
customElements.define("cool-element", CoolElement, {styles: '.thing { color: blue; }');
el.createShadowRoot({styles: ':host {display: block; }') // using :host makes sense here
```

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

Received on Tuesday, 26 April 2016 19:49:04 UTC