I'd say, if the shadow DOM is used for decoration only, like for extra wrappers and presentational markup, then it should be declared alongside the other CSS rules.
The different preprocessors seem to be the best choice there, as you could generate this way not only the needed CSS, but also the needed JS that then would enable the expected shadow DOM.
I'd say, if the shadow DOM is used for decoration only, like for extra wrappers and presentational markup, then it should be declared alongside the other CSS rules.
The different preprocessors seem to be the best choice there, as you could generate this way not only the needed CSS, but also the needed JS that then would enable the expected shadow DOM.