- From: Justin Fagnani via GitHub <noreply@w3.org>
- Date: Wed, 21 Jan 2026 21:28:39 +0000
- To: public-css-archive@w3.org
I just published something of a polyfill for `@sheet` in my CSS module plugin for rollup, `rollup-plugin-css-modules`: https://www.npmjs.com/package/rollup-plugin-css-modules It works by using the `@supports` hack I wrote about [above](https://github.com/w3c/csswg-drafts/issues/5629#issuecomment-1401322544). The downsides over real `@sheet` support are: - This double parses the CSS. Once for the bundle, and again when we make a new CSSStyleSheet for a bundled sheet and insert the bundled rules into it. - It requires a `getBundledSheet()` helper to be included in the JS bundle. - It only works for JS imports. There's no `<link>` support. -- GitHub Notification of comment by justinfagnani Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5629#issuecomment-3781248739 using your GitHub account -- Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config
Received on Wednesday, 21 January 2026 21:28:40 UTC