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

@rniwa, Is the resolution on this issue to accept either an `HTMLStyleElement` or `HTMLLinkeElement` in the custom element's style config? Not really sure how to refer to that, so I'll say
```typescript
interface CEConfig {
  style?: HTMLStyleElement | HTMLLinkElement;
  extends?: string
}

customElements.define: void = (tagName: string, constructor: HTMLElement, config: CEConfig) => { /*...*/ }
```

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

Received on Thursday, 19 April 2018 19:11:43 UTC