Closed Bug 1986681 Opened 6 months ago Closed

Ship CSS Module Scripts

Categories

(Core :: DOM: CSS Object Model, task)

task

Tracking

()

RESOLVED FIXED
147 Branch
Tracking Status
relnote-firefox --- 147+
firefox147 --- fixed

People

(Reporter: dminor, Assigned: dminor)

References

Details

(Keywords: dev-doc-complete, webcompat:platform-bug)

User Story

user-impact-score:40

Attachments

(2 files)

Once CSS Module Scripts have been on Nightly for a few releases, we can look into shipping it.

Depends on: 1989109

I don't think supporting this in chrome is a blocker to shipping the feature.

No longer depends on: 1989109
User Story: (updated)

I only can say that I've tested FF nightly with css imports extensively. We have a designer wich heavily depends on css modules: https://node-projects.github.io/web-component-designer-demo/index.html
Yeah my demo uses the polyfill, but in our company we have huge applications wich depend on them and everything works now.

So I would say, better ship earlier then later.

Tentatively planning this for Firefox 147.

Assignee: nobody → dminor
Depends on: 1997638
Pushed by csabou@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/42ff5ed800be https://hg.mozilla.org/integration/autoland/rev/7d9ef60c5974 Revert "Bug 1986681 - Ship css module scripts; r=emilio" for causing css related wpt failures. DONTBUILD

This is a new test that previously errored with css module scripts disabled, now it has failures, but
the failures are consistent with the other tests for shadow root adopted stylesheets, and don't
seem to be related to css module scripts.

Depends on D272993

Flags: needinfo?(dminor)
Pushed by abutkovits@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/3cd3ce238ba0 https://hg.mozilla.org/integration/autoland/rev/05aed38ed69e Revert "Bug 1986681 - Update wpt expectations for shadowrootadoptedstylesheets-fetched-module.html; r=emilio" for causing failures at import-style-allowed.sub.html.
Attachment #9527630 - Attachment description: Bug 1986681 - Update wpt expectations for shadowrootadoptedstylesheets-fetched-module.html; r=emilio! → Bug 1986681 - Update wpt expectations; r=emilio!
Flags: needinfo?(dminor)
Status: NEW → RESOLVED
Closed: 3 months ago
Closed: 3 months ago
Resolution: --- → FIXED
Target Milestone: --- → 147 Branch

:dminor, could you add a release note request here?

Flags: needinfo?(dminor)

Release Note Request (optional, but appreciated)
[Why is this notable]: This adds support for CSS Module Scripts, a feature that has been present in Chromium for quite a while, and is frequently requested by developers.
[Affects Firefox for Android]: Yes
[Suggested wording]: CSS Module Scripts allow stylesheets to be imported using the JavaScript module system and import attributes, for more information, please see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#loading_non-javascript_resources.
[Links (documentation, blog post, etc)]: https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Modules#loading_non-javascript_resources.

relnote-firefox: --- → ?
Flags: needinfo?(dminor)

Added to the Fx147 relnotes.

FF147 work for this can be tracked in https://github.com/mdn/content/issues/42255.

Does this also allow the syntax assert {type: 'css'} - I ask not because I expect it does, but because the implementation bug is linked from the compatibility data. So either that link should be removed or the feature should be marked as supported.

Flags: needinfo?(dminor)

The assert syntax was removed (we unshipped it in https://bugzilla.mozilla.org/show_bug.cgi?id=1910686, according to that bug, Chromium unshipped it at the same time as well) so we should be able to remove references to it from the documentation. I'd fix the link, but I'm not sure which link you mean :)

Flags: needinfo?(dminor)

Cheers. I'll sort it.

QA Whiteboard: [qa-triage-done-c148/b147]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: