Skip to content

Commit 2545d37

Browse files
committed
FF145 Relnote/Expr: CSS Module Scripts
1 parent 2597731 commit 2545d37

File tree

2 files changed

+19
-1
lines changed

2 files changed

+19
-1
lines changed

files/en-us/mozilla/firefox/experimental_features/index.md

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,7 +356,21 @@ The {{CSSXRef(":heading")}} pseudo-class allows you to style all [heading elemen
356356

357357
## JavaScript
358358

359-
**No experimental features in this release cycle.**
359+
### CSS module scripts
360+
361+
CSS module scripts are now supported, allowing a stylesheet to be loaded into a script as a {{domxref("CSSStyleSheet")}} instance using the [`import`](/en-US/docs/Web/JavaScript/Reference/Statements/import) statement.
362+
The `import` statement must also specify the `type` [import attribute](/en-US/docs/Web/JavaScript/Reference/Statements/import/with) and set it to `"css"`, and the stylesheet must be served with the MIME type of `text/css`.
363+
([Firefox bug 1720570](https://bugzil.la/1720570)).
364+
365+
| Release channel | Version added | Enabled by default? |
366+
| ----------------- | ------------- | ------------------- |
367+
| Nightly | 145 | No |
368+
| Developer Edition | No | No |
369+
| Beta | No | No |
370+
| Release | No | No |
371+
372+
- `layout.css.module-scripts.enabled`
373+
- : Set to `true` to enable.
360374

361375
## APIs
362376

files/en-us/mozilla/firefox/releases/145/index.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -110,3 +110,7 @@ You can find more such features on the [Experimental features](/en-US/docs/Mozil
110110
Nightly builds now support [CSS anchor positioning](/en-US/docs/Web/CSS/CSS_anchor_positioning) by default, which allows you to tether elements together.
111111
The anchor-positioned elements can then have their size and position set relative to the size and location of the anchor elements to which they are bound.
112112
(General: [Firefox bug 1988224](https://bugzil.la/1988224), `position-area`: [Firefox bug 1924086](https://bugzil.la/1924086)).
113+
114+
- **CSS module scripts:** (Nightly) and `layout.css.module-scripts.enabled`.
115+
116+
CSS module scripts are now supported, allowing a stylesheet to be loaded into a script as a {{domxref("CSSStyleSheet")}} instance using the [`import`](/en-US/docs/Web/JavaScript/Reference/Statements/import) keyword and the [`type` import attribute](/en-US/docs/Web/JavaScript/Reference/Statements/import/with) set to `type="css"`. ([Firefox bug 1720570](https://bugzil.la/1720570)).

0 commit comments

Comments
 (0)