[wpt-sync] Sync PR 64967 - [css-modules] Fetch CSS modules from stylesheet links
Categories
(Core :: DOM: Core & HTML, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox163 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
()
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 64967 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/64967
Details from upstream follow.
Kurt Catti-Schmidt <kschmi@microsoft.com> wrote:
[css-modules] Fetch CSS modules from stylesheet links
Introduce runtime-gated support for \<link rel="stylesheet"
import="specifier"> . Resolve nonempty import values through the
document’s import map and fetch the resulting resource as a CSS module
through the modulator, rather than as a classic stylesheet. The import
attribute takes precedence over href .Add LinkModuleImport , a LinkResource implementation that manages module
fetching and load state for these links. It dispatches asynchronous
load/error notifications through the owning link and cancels stale
completion notifications when the link is removed or its import changes.Add WPT coverage for import precedence, type-independent module
selection, classic/preload selection, resolution and fetch failures,
asynchronous errors, and cancellation.Bug: 448174611
Change-Id: Iafa0245727ad9cc76dda6cadc972b6a25a1fc60e
Reviewed-on: https://chromium-review.googlesource.com/8382025
WPT-Export-Revision: d99536f108998c5baae98fce21179677f968f30c
| Assignee | ||
Updated•18 days ago
|
| Assignee | ||
Updated•11 days ago
|
| Assignee | ||
Updated•11 days ago
|
| Assignee | ||
Comment 1•11 days ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=121881
| Assignee | ||
Comment 2•11 days ago
|
||
CI Results
Ran 6 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 5 tests and 3 subtests
Status Summary
Firefox
FAIL : 3
TIMEOUT: 10
NOTRUN : 23
Chrome
PASS : 3
TIMEOUT: 10
NOTRUN : 23
Safari
FAIL : 2
TIMEOUT: 10
NOTRUN : 24
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /html/semantics/document-metadata/the-link-element/tentative/module-stylesheet-classification.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- A module stylesheet link with type=null uses import.:
FAIL(Chrome:PASS, Safari:FAIL) - A module stylesheet link with type="" uses import.:
FAIL(Chrome:PASS, Safari:TIMEOUT) - A module stylesheet link with type="text/css" uses import.:
FAIL(Chrome:PASS, Safari:NOTRUN) - A module stylesheet link with type="text/plain" uses import.:
TIMEOUT(Chrome:TIMEOUT, Safari:NOTRUN) - Removing import before insertion selects classic fetching.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Restoring import before insertion selects module fetching.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Changing to preload before insertion selects the appropriate fetching mode.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Restoring stylesheet before insertion selects the appropriate fetching mode.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A nonempty import attribute takes precedence over a valid href.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- A module stylesheet link with type=null uses import.:
- /html/semantics/document-metadata/the-link-element/tentative/module-stylesheet-document-context.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- A module link in a document without a window fires an asynchronous error.:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - A module link inserted after iframe detachment can be reprocessed without crashing.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A module link pending during iframe detachment can be reprocessed without crashing.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- A module link in a document without a window fires an asynchronous error.:
- /html/semantics/document-metadata/the-link-element/tentative/module-stylesheet-failure-events.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- Resolution failure for "" fires asynchronously.:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - Removing a link cancels its queued failure for "".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Changing import cancels the queued failure for "".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Resolution failure for "unmapped-specifier" fires asynchronously.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Removing a link cancels its queued failure for "unmapped-specifier".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Changing import cancels the queued failure for "unmapped-specifier".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Resolution failure for "https://[invalid]/" fires asynchronously.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Removing a link cancels its queued failure for "https://[invalid]/".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - Changing import cancels the queued failure for "https://[invalid]/".:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- Resolution failure for "" fires asynchronously.:
- /html/semantics/document-metadata/the-link-element/tentative/module-stylesheet-fetch.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- Unresolvable module specifier fires error and connects no sheet.:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT) - Non-CSS MIME type fires error and connects no sheet.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A malformed absolute URL fires error and connects no sheet.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A CSS response with HTTP status 404 fires error.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A CSS response with HTTP status 503 fires error.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A revoked CSS blob URL fires error and connects no sheet.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN) - A successful CSS module fetch fires load.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- Unresolvable module specifier fires error and connects no sheet.:
- /html/semantics/document-metadata/the-link-element/tentative/module-stylesheet-module-map-reuse.html [wpt.fyi]:
TIMEOUT(Chrome:TIMEOUT, Safari:TIMEOUT)- JavaScript loads a CSS module first: the other consumer reuses the module map.:
TIMEOUT(Chrome:TIMEOUT, Safari:FAIL) - link loads a CSS module first: the other consumer reuses the module map.:
NOTRUN(Chrome:NOTRUN, Safari:TIMEOUT) - A script-added import map resolves a module link and shares its module with JavaScript.:
NOTRUN(Chrome:NOTRUN, Safari:NOTRUN)
- JavaScript loads a CSS module first: the other consumer reuses the module map.:
Comment 4•8 days ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/49f9feb9375c
https://hg.mozilla.org/mozilla-central/rev/955eafb24b25
Description
•