CSS Module Scripts
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 65/100
- Issue type
- Feature
- Clarity
- Clearly specified
- Activity status
- Active
- Tech stack
- css, javascript
- Domain
- testing-qa, web-dev
Research direction
The issue is about adding CSS Module Scripts to the Interop project. Start by reading the specification link and the web-feature page to understand the feature. Review the existing test results at the provided WPT link. The work involves updating test suites or documentation in the web-platform-tests/interop repository. Check the linked prior proposals for context. 'Done' means the feature is correctly represented in the project's tracking.
Written by the indexing model from the issue text.
Description
Description
CSS module scripts allow a CSS file to be imported as a constructable stylesheet using the JavaScript module import syntax:
import styleSheet from "./styles.css" with { type: "css" };
documentOrStyleSheet.adoptedStyleSheets = [styleSheet];
Shipped in Chromium and Gecko, not in WebKit.
Specification
https://html.spec.whatwg.org/multipage/webappapis.html#creating-a-css-module-script
web-feature
https://web-platform-dx.github.io/web-features-explorer/features/css-modules/
Test Links
https://wpt.fyi/results/html/semantics/scripting-1/the-script-element/css-module
Additional Signals
This has been proposed 4 times for prior versions of Interop (once by me, 3 times by others):
2026: https://github.com/web-platform-tests/interop/issues/1056
2025: https://github.com/web-platform-tests/interop/issues/703
2024: https://github.com/web-platform-tests/interop/issues/597
2023: https://github.com/web-platform-tests/interop/issues/206
Lots of positive reactions on those threads (and negative reactions to the rejections) in the past couple years.
- Dominant language
- JavaScript
- Stars
- 591
- Forks
- 39
- Avg merge
- 3h 8m
- Merged PRs (30d)
- 2
Getting set up
This project ships no dev container, Dockerfile or contributing guide, so setting up is up to you: start from its README, and see our first-contribution guide for the general steps.
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from web-platform-tests/interop
-
focus-area-proposal
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
web-platform-tests/interop#1363 · 2 comments · 32 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
web-platform-tests/interop#1362 · 1 comment · 5 reactions ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
web-platform-tests/interop#1267 · 5 comments · 2 reactions ·
-
meta
Difficulty 1/5 Under an hour Newbie friendliness 62/100
web-platform-tests/interop#931 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 55/100
web-platform-tests/interop#1522 ·
All issues in web-platform-tests/interop
Similar issues
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
web-platform-tests/wpt#65844 ·
Maintainers usually reply within 1 day
-
marketing
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 75/100
Kanevry/session-orchestrator#108 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
awesomemotive/all-in-one-seo-pack#3238 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
andromarces/agent-loops#2055 ·
Maintainers usually reply within 1 day