CSS import attributes
Limited availability
Module import … with { type: "css" }
statements load CSS modules as constructable stylesheets. Also known as CSS module scripts.
Learning resources on MDN
Browser support
- Chrome 123 Released on 2024-03-19
- Chrome Android 123 Released on 2024-03-19
- Edge 123 Released on 2024-03-22
- Firefox ❌ See bugzil.la/1720570 Vendor position : positive
- Firefox for Android ❌ See bugzil.la/1720570 Vendor position : positive
- Safari ❌ See webkit.org/b/227967 Vendor position : support
- Safari on iOS ❌ See webkit.org/b/227967 Vendor position : support
Specifications
- HTML (#css-module-script), from HTML Workstream (WHATWG).
View web-platform-tests results for this feature - View the feature source file (dist) - Edit the feature - Report an issue about this feature