Re: [w3c/webcomponents] HTML Modules (#645)

@tomalec That's fair. I use a variation of (2) today, but usually a subset of the element's stylesheet will suffice.  Since we are already inside of modules at this point you have to solve this regardless of whether you are using HTML modules or JavaScript modules to load your element definitions.

Maybe parts/themes will help with not duplicating the styles. You could define the styles in a blocking document-level stylesheet and once the element is defined it uses part/theme to inherit those styles.

-- 
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/645#issuecomment-433048339

Received on Thursday, 25 October 2018 13:22:32 UTC