Just a question about the roadmap. Are there plans to support constructable stylesheets with Shadow DOM? When using native Custom Elements the styles are repeated for multiple instances of the same element, and constructable stylesheets are a nice solution.
Yes, I think so, once they're supported by all browsers. Though until CSS Modules are also supported, I'm not sure they have that much benefit — you still have to transport styles in JavaScript strings (unless you fetch them, leading to FOUC) and <style> tags in shadow DOM are already deduplicated, so the performance benefit is probably fairly modest.
Most helpful comment
Yes, I think so, once they're supported by all browsers. Though until CSS Modules are also supported, I'm not sure they have that much benefit — you still have to transport styles in JavaScript strings (unless you
fetchthem, leading to FOUC) and<style>tags in shadow DOM are already deduplicated, so the performance benefit is probably fairly modest.