Home | Notifications | New Note | Local | Federated | Search | Logout

Note Detail


Firefox for Web Developers@firefoxwebdevs@mastodon.social (2026-01-23 23:28:29)
CSS module scripts landed in Firefox 147, so you can import CSS directly into JavaScript.

Docs:

Import attributes https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/import/with
CSSStyleSheet https://developer.mozilla.org/en-US/docs/Web/API/CSSStyleSheet ---Attachments--- video: https://files.mastodon.social/media_attachments/files/115/944/881/429/553/149/original/7d8c7fc4b8b4eed6.mp4

---Reply--- Lou Cyx@loucyx@mastodon.social (2026-01-25 08:30:35) @jaffathecake I really appreciate the honesty/transparency about this feature! I agree that ideally we should ship it as a single file if we want the "async" behavior, and if not then simply put that style in the HTML. Great video as usual! Keep them coming! 💕
Reply