[wpt-sync] Sync PR 63177 - [css-mixins] Test that @mixin is valid wherever @keyframes is valid
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox160 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 63177 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/63177
Details from upstream follow.
Stephanie Zhang <stephanie.zhang@microsoft.com> wrote:
[css-mixins] Test that @mixin is valid wherever @keyframes is valid
Add test cases verifying that @mixin is valid wherever @keyframes is
valid, including conditional group rules and @layer.https://github.com/w3c/csswg-drafts/issues/12417
Change-Id: I2e2a619db118ff2a6e33a616719a7afb6f0baffc
Fixed: 440050694
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/8487194
Reviewed-by: Kevin Babbitt \<kbabbitt@microsoft.com>
Commit-Queue: Stephanie Zhang \<stephanie.zhang@microsoft.com>
Auto-Submit: Stephanie Zhang \<stephanie.zhang@microsoft.com>
Cr-Commit-Position: refs/heads/main@{#1709091}
| Assignee | ||
Updated•1 month ago
|
| Assignee | ||
Comment 1•1 month ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/jobs?repo=try&landoInstance=lando-prod-2025&landoCommitID=99605
| Assignee | ||
Comment 2•1 month ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 25 tests and 2 subtests
Status Summary
Firefox
OK : 1[GitHub] 25[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
PASS: 17
FAIL: 29[GitHub] 109[Gecko-android-em-14-x86_64-debug-geckoview, Gecko-android-em-14-x86_64-lite-opt-geckoview, Gecko-android-em-14-x86_64-opt-geckoview, Gecko-linux2404-64-debug, Gecko-linux2404-64-opt, Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt, Gecko-windows11-64-25h2-debug, Gecko-windows11-64-25h2-opt]
Chrome
OK : 1
PASS: 29
Safari
OK : 1
FAIL: 29
Links
Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base
Details
New Tests That Don't Pass
- /css/css-mixins/mixins/apply-nested-declarations.html [wpt.fyi]
- Can mix declarations into pseudo-elements:
FAIL
- Can mix declarations into pseudo-elements:
- /css/css-mixins/mixins/apply-within-mixin.html [wpt.fyi]
- CSS Mixins: Mixins depending on other mixins:
FAIL
- CSS Mixins: Mixins depending on other mixins:
- /css/css-mixins/mixins/contents-nested-declarations-fallback.html [wpt.fyi]
- Can mix declarations into pseudo-elements via @contents:
FAIL
- Can mix declarations into pseudo-elements via @contents:
- /css/css-mixins/mixins/contents-nested-declarations.html [wpt.fyi]
- Can mix declarations into pseudo-elements via @contents:
FAIL
- Can mix declarations into pseudo-elements via @contents:
- /css/css-mixins/mixins/contents-rule.html [wpt.fyi]
- Simple @contents with no fallback:
FAIL - Implicit semicolon after @contents, at end of block:
FAIL - Block in @apply overrides fallback:
FAIL - Fallback is used if @apply has no block:
FAIL - Empty @contents block is allowed, but does nothing:
FAIL - Empty @contents parameter does not crash:
FAIL - @apply with no block uses the @contents fallback:
FAIL
- Simple @contents with no fallback:
- /css/css-mixins/mixins/important.html [wpt.fyi]
- !important is valid in mixin result declarations:
FAIL
- !important is valid in mixin result declarations:
- /css/css-mixins/mixins/mixin-basic.html [wpt.fyi]
- CSS Mixins: Basic test:
FAIL
- CSS Mixins: Basic test:
- /css/css-mixins/mixins/mixin-conditionals.html [wpt.fyi]
- @media and @supports wrapping @result:
FAIL - @container wrapping @result:
FAIL - @media and @supports wrapping locals:
FAIL - @container wrapping locals:
FAIL - @container wrapping locals with different container is not cached:
FAIL - Bare locals overriding earlier conditional-wrapped locals:
FAIL - Nested @media and @container locals:
FAIL
- @media and @supports wrapping @result:
- /css/css-mixins/mixins/mixin-cross-stylesheet.html [wpt.fyi]
- CSS Mixins: Mixin from another stylesheet:
FAIL
- CSS Mixins: Mixin from another stylesheet:
- /css/css-mixins/mixins/mixin-cssom.tentative.html [wpt.fyi]
- serialization of @mixin:
FAIL - serialization of rule with @apply:
FAIL - serialization of @mixin with @contents:
FAIL - serialization of rule with @apply and contents argument:
FAIL - serialization of @mixin with parameters:
FAIL - serialization of @mixin defined without a parameter list:
FAIL - serialization of @apply with an empty contents block:
FAIL
- serialization of @mixin:
- /css/css-mixins/mixins/mixin-cycle.tentative.html [wpt.fyi]
- CSS Mixins: Cycles:
FAIL
- CSS Mixins: Cycles:
- /css/css-mixins/mixins/mixin-declarations.html [wpt.fyi]
- CSS Mixins: Declarations directly in mixin:
FAIL
- CSS Mixins: Declarations directly in mixin:
- /css/css-mixins/mixins/mixin-from-import-with-media-queries.html [wpt.fyi]
- CSS Mixins: @import with media queries:
FAIL
- CSS Mixins: @import with media queries:
- /css/css-mixins/mixins/mixin-from-import.html [wpt.fyi]
- CSS Mixins: Mixin from an imported stylesheet:
FAIL
- CSS Mixins: Mixin from an imported stylesheet:
- /css/css-mixins/mixins/mixin-invalidation.tentative.html [wpt.fyi]
- invalidation of @mixin from same stylesheet:
FAIL - invalidation of @mixin from different stylesheet:
FAIL - invalidation on adding @apply rule:
FAIL
- invalidation of @mixin from same stylesheet:
- /css/css-mixins/mixins/mixin-layers.html [wpt.fyi]
- Mixins work inside layers:
FAIL - Mixins work inside layers (anonymous):
FAIL - Mixins in stronger layer wins:
FAIL - Mixins in stronger layer wins (source order matching layer order):
FAIL
- Mixins work inside layers:
- /css/css-mixins/mixins/mixin-locals.html [wpt.fyi]
- Basic local support:
FAIL - Mixin is not cached if locals are different:
FAIL - Locals resolve against each other:
FAIL - Locals resolve against parameters:
FAIL - Parameters do not resolve against locals:
FAIL - Locals after @result are seen:
FAIL - !important invalidates a mixin local declaration:
FAIL - An invalid !important local does not define the variable:
FAIL
- Basic local support:
- /css/css-mixins/mixins/mixin-media-query-invalidation-2.html [wpt.fyi]
- CSS Mixins: Invalidates on negative media query becoming positive:
FAIL
- CSS Mixins: Invalidates on negative media query becoming positive:
- /css/css-mixins/mixins/mixin-media-query-invalidation.html [wpt.fyi]
- CSS Mixins: Media Queries and invalidation:
FAIL
- CSS Mixins: Media Queries and invalidation:
- /css/css-mixins/mixins/mixin-parameters.html [wpt.fyi]
- Mixins with invalid parameter lists are ignored:
FAIL - Basic mixin parameter passing:
FAIL - Mixins can be called multiple times with different parameters:
FAIL - Too few parameters and no default ignores mixin:
FAIL - Mixin argument parsing with arguments wrapped in {}:
FAIL - Defaults in mixin parameters:
FAIL - Fallback is ignored if argument is given:
FAIL - Fallback is used with no parameter and no default:
FAIL - var() can be accessed from attributes:
FAIL - var() resolves typed parameters:
FAIL - var() refuses illegal syntax parameters, but does not fail entire mixin:
FAIL - var() can access parameters from outer mixins:
FAIL - var() works inside if, in condition and true branch:
FAIL - var() works inside if, in condition and false branch:
FAIL - Mixin arguments are resolved at call site, not at use:
FAIL - var() supports default parameters:
FAIL - var() typed default parameters are resolved against the element:
FAIL
- Mixins with invalid parameter lists are ignored:
- /css/css-mixins/mixins/mixin-parsing.html [wpt.fyi]
- @layer (statement) is invalid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer (block) is invalid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer (anonymous) is invalid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer (statement) within @result is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer (block) within @result is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer (anonymous) within @result is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - style rule is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - style rule (relative) is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @media is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @supports is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @container is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @starting-style is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @scope is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @scope (implicit) is valid in @mixin:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @result (statement):
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @result (block):
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within a nested style rule:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @media:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @supports:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @container:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within @scope:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within a body-level @media:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within a body-level @supports:
FAIL(Chrome:PASS, Safari:FAIL) - @layer is dropped within a body-level @container:
FAIL(Chrome:PASS, Safari:FAIL) - @mixin and @keyframes are valid within @media:
FAIL(Chrome:PASS, Safari:FAIL) - @mixin and @keyframes are valid within @container:
FAIL(Chrome:PASS, Safari:FAIL) - @mixin and @keyframes are valid within @supports:
FAIL(Chrome:PASS, Safari:FAIL) - @mixin and @keyframes are valid within @navigation:
FAIL(Chrome:PASS, Safari:FAIL) - @mixin and @keyframes are valid within @layer:
FAIL(Chrome:PASS, Safari:FAIL)
- @layer (statement) is invalid in @mixin:
- /css/css-mixins/mixins/mixin-shadow-dom.html [wpt.fyi]
- Style in shadow DOM should have access to outside non-adopted mixins:
FAIL - Style in shadow DOM should have access to inside mixins:
FAIL - Style in shadow DOM should have access to mixins from adopted stylesheets:
FAIL - Shared inline @apply contents use the correct mixin in each scope:
FAIL - Shared inline @apply contents do not depend on scope creation order:
FAIL - Shared constructed @apply sheet uses the correct mixin in each scope:
FAIL - Shared constructed @apply sheet does not depend on scope creation order:
FAIL - An @apply of an undefined mixin does not affect a scope that defines it:
FAIL - An @apply of a defined mixin does not leak into a scope without it:
FAIL - A local mixin overrides a document mixin with the same name:
FAIL - Nested shadows use the nearest mixin along each tree branch:
FAIL
- Style in shadow DOM should have access to outside non-adopted mixins:
- /css/css-mixins/mixins/mixin-shared-across-documents.html [wpt.fyi]
- A shared stylesheet's @apply resolves to each document's own mixin:
FAIL
- A shared stylesheet's @apply resolves to each document's own mixin:
- /css/css-mixins/mixins/mixin-shared-sheet-no-mixins-in-scope.html [wpt.fyi]
- A scope with no mixins does not affect @apply in a scope that declares the mixin:
FAIL - An applied mixin does not affect @apply in a scope that has no mixins:
FAIL
- A scope with no mixins does not affect @apply in a scope that declares the mixin:
https://hg.mozilla.org/mozilla-central/rev/c1ef499a7f30
https://hg.mozilla.org/mozilla-central/rev/1bcd2bebe76b
Description
•