CSS import attributes
Module import … with { type: "css" } statements load CSS modules as constructable stylesheets. Also known as CSS module scripts.
Status
Limited availability
MDN documentation
Specifications
- HTML (#css-module-script), from HTML Workstream (WHATWG).
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 147 Released on 2026-01-13
- Firefox for Android 147 Released on 2026-01-13
- Safari ❌ See webkit.org/b/227967 Vendor position : support
- Safari on iOS ❌ See webkit.org/b/227967 Vendor position : support
Baseline availability blocked since January 2026 by Safari (1 months)
Usage (according to Chrome Platform Status)
~0.000% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureDeveloper votes
Do you need this feature?
Let us know by leaving a 👍 reaction on the feedback issue. Don't forget to also leave a comment explaining your specific use case.
View as JSON | Edit this feature | Report an issue | Web-features entry: source, dist