Declarative CSS Modules Scripts are an extension of the existing script-based CSS Module Scripts. They allow for developers to share declarative stylesheets with shadow roots, including declarative shadow roots.
Without this feature, developers have several non-ideal options for sharing a set of styles between declarative shadow DOM hosts:
1. Use imperative CSS Modules, somewhat defeating the purpose of declarative shadow DOM (because it requires script).
2. Duplicating <style> tags, resulting in more work for the network and parser.
3. Use external CSS files in a <link> tag, resulting in a potential Flash of Unstyled Content (FOUC).
Declarative CSS Modules avoid all of these pitfalls, allowing developers to define a base set of styles inline that declarative shadow roots can performantly share.