Intent to ship: CSS Module Scripts

150 views
Skip to first unread message

Daniel Minor

unread,
Nov 13, 2025, 10:03:43 AM (14 hours ago) Nov 13
to dev-pl...@mozilla.org
As of Firefox 147, I intend to enable support for CSS Module Scripts by default on all platforms. It is currently available in Nightly builds, but disabled by default and controlled by the `layout.css.module-scripts.enabled` preference. CSS Module Scripts allow stylesheets to be imported using the JavaScript module system and import attributes, for more information, please see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#loading_non-javascript_resources.

Chromium shipped support for this back in version 93 (https://developer.chrome.com/blog/new-in-chrome-93). Work does not appear to have started in Safari, the tracking bug is https://bugs.webkit.org/show_bug.cgi?id=227967.

Reply all
Reply to author
Forward
0 new messages