[wpt-sync] Sync PR 61433 - [css-mixins] Make @apply and @contents rules StyleRuleGroups
Categories
(Core :: CSS Parsing and Computation, task, P4)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox155 | --- | fixed |
People
(Reporter: wpt-sync, Unassigned)
References
(Blocks 1 open bug, )
Details
(Whiteboard: [wptsync downstream])
Sync web-platform-tests PR 61433 into mozilla-central (this bug is closed when the sync is complete).
PR: https://github.com/web-platform-tests/wpt/pull/61433
Details from upstream follow.
Stephanie Zhang <stephanie.zhang@microsoft.com> wrote:
[css-mixins] Make @apply and @contents rules StyleRuleGroups
@apply and @contents carry child rules but extended StyleRuleBase,
stashing them on a throwaway "fake parent" StyleRule. This CL makes them
extend StyleRuleGroup, owning their children directly and joining
DowncastTraits\<StyleRuleGroup> and continuing the work from CL:7755161.This is a behavior-preserving refactor. A web test was added confirming
that an empty@apply --foo {}block suppresses the mixin's @contents
fallback, while@apply --foo;still lets it apply.Change-Id: I033b0d0b0e6d399152cb6ce3e1ac4dfd0c563c48
Fixed: 502048295
Reviewed-on: https://chromium-review.googlesource.com/8114919
WPT-Export-Revision: 15eb3f8b9ff6966c5f993232334acc8635edc9fd
| Assignee | ||
Updated•4 months ago
|
| Assignee | ||
Comment 1•4 months ago
|
||
Pushed to try (stability) https://treeherder.mozilla.org/#/jobs?repo=try&revision=932b508859a46c91cc45a6e49d7330484182e6d4
| Assignee | ||
Comment 2•4 months ago
|
||
CI Results
Ran 9 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI
Total 22 tests and 4 subtests
Status Summary
Firefox
OK : 1[GitHub] 22[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: 1[GitHub] 14[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]
FAIL: 7[GitHub] 78[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: 8
Safari
OK : 1
PASS: 1
FAIL: 7
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(Chrome:PASS, Safari:FAIL) - Implicit semicolon after @contents, at end of block:
FAIL(Chrome:PASS, Safari:FAIL) - Block in @apply overrides fallback:
FAIL(Chrome:PASS, Safari:FAIL) - Fallback is used if @apply has no block:
FAIL(Chrome:PASS, Safari:FAIL) - Empty @contents block is allowed, but does nothing:
FAIL(Chrome:PASS, Safari:FAIL) - Empty @contents parameter does not crash:
FAIL(Chrome:PASS, Safari:FAIL) - @apply with no block uses the @contents fallback:
FAIL(Chrome:PASS, Safari:FAIL)
- Simple @contents with no fallback:
- /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:
- /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
- 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 - @layer (block) is invalid in @mixin:
FAIL - @layer (anonymous) is invalid in @mixin:
FAIL - @layer (statement) within @result is valid in @mixin:
FAIL - @layer (block) within @result is valid in @mixin:
FAIL - @layer (anonymous) within @result is valid in @mixin:
FAIL - style rule is valid in @mixin:
FAIL - style rule (relative) is valid in @mixin:
FAIL - @media is valid in @mixin:
FAIL - @supports is valid in @mixin:
FAIL - @container is valid in @mixin:
FAIL - @starting-style is valid in @mixin:
FAIL - @scope is valid in @mixin:
FAIL - @scope (implicit) is valid in @mixin:
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
- Style in shadow DOM should have access to outside non-adopted mixins:
Comment 4•4 months ago
|
||
| bugherder | ||
https://hg.mozilla.org/mozilla-central/rev/0798d445ec82
https://hg.mozilla.org/mozilla-central/rev/df2888aed41b
Comment 5•4 months ago
|
||
| bugherder | ||
Comment 6•4 months ago
|
||
| bugherder | ||
Comment 7•4 months ago
|
||
| bugherder | ||
Description
•