CSS import attributes
Limited availability
Module import … with { type: "css" } statements load CSS modules as constructable stylesheets. Also known as CSS module scripts.
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 Not supported Position: support Bugs: 227967
- Safari on iOS Not supported Position: support Bugs: 227967
Baseline availability blocked since January 2026 by Safari (6 months)
Need this feature?
Leave a 👍 on the feedback issue
Don't forget to also leave a comment explaining your specific use case.
MDN documentation
Specifications
- HTML (#css-module-script), from HTML Workstream (WHATWG).
Usage (according to Chrome Platform Status)
~0.003% of page loads. More data at chromestatus.com.Web Platform Tests (WPT)
View the latest WPT test results for this featureView as JSON | Edit this feature | Report an issue | Web-features entry: source, dist