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

@trusktr good point, forget my apply suggestion. In that case, your `styles` getter to list selectors that custom element is allowing the document to modify it with is good. For cases where element styles are indeed encapsulated away from main document, not themed, `define` can maybe take style url :

```
customElements.define('my-el', MyEl, {
  style: {
     apply: [ "--some-rules", "--other-rules" ], 
     href: "elementSpecific.css"
  } 
})
```

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

Received on Wednesday, 21 February 2018 09:54:18 UTC