You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: files/en-us/mozilla/firefox/experimental_features/index.md
+15-1Lines changed: 15 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -356,7 +356,21 @@ The {{CSSXRef(":heading")}} pseudo-class allows you to style all [heading elemen
356
356
357
357
## JavaScript
358
358
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`.
Copy file name to clipboardExpand all lines: files/en-us/mozilla/firefox/releases/145/index.md
+4Lines changed: 4 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -110,3 +110,7 @@ You can find more such features on the [Experimental features](/en-US/docs/Mozil
110
110
Nightly builds now support [CSS anchor positioning](/en-US/docs/Web/CSS/CSS_anchor_positioning) by default, which allows you to tether elements together.
111
111
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.
-**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