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

@domenic 
It has a lot to do with integrating with custom elements. Ostensibly the primary way of constructing a style sheet will be either `new CSSStyleSheet` or whatever the current proposal of `CSSStyleSheet.createFromString` will be. 

To make this feature truly compelling and user friendly, I believe this should either accept a `Promise<CSSStyleSheet>` or maintain a reference to the sheet so it can be modified and shared. 

The CSS working group apparently has a distaste for synchronous parsing, so this feature needs to cooperate with how users will create style sheets. (See this comment from @tabatkins.)[https://github.com/WICG/construct-stylesheets/issues/25#issuecomment-391378735]

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

Received on Saturday, 16 June 2018 18:45:26 UTC