Closed Bug 2056431 Opened 4 months ago Closed 4 months ago

[wpt-sync] Sync PR 61433 - [css-mixins] Make @apply and @contents rules StyleRuleGroups

Categories

(Core :: CSS Parsing and Computation, task, P4)

task

Tracking

()

RESOLVED FIXED
155 Branch
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

Component: web-platform-tests → CSS Parsing and Computation
Product: Testing → Core

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

Status: NEW → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Target Milestone: --- → 155 Branch
You need to log in before you can comment on or make changes to this bug.