Closed Bug 2078215 Opened 1 month ago Closed 1 month ago

[wpt-sync] Sync PR 63273 - [css-transitions] revert inside @starting-style drops lower-layer @starting-style declarations

Categories

(Core :: CSS Transitions and Animations, task, P4)

task

Tracking

()

RESOLVED FIXED
160 Branch
Tracking Status
firefox160 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

Sync web-platform-tests PR 63273 into mozilla-central (this bug is closed when the sync is complete).

PR: https://github.com/web-platform-tests/wpt/pull/63273
Details from upstream follow.

Ahmad Saleem <ahmad.saleem792+github@gmail.com> wrote:

[css-transitions] revert inside @starting-style drops lower-layer @starting-style declarations

This patch aligns WebKit with Gecko / Firefox and Blink / Chromium.

The rollback cascades built for revert, revert-layer and revert-rule hardcoded their included property types to normalProperties(), which does not contain PropertyType::StartingStyle. As a result, addMatch() dropped every @starting-style declaration from the rollback cascade, so a revert used inside an @starting-style rule could not roll back to an @starting-style declaration from a lower priority layer or origin and instead behaved like "unset".

Propagate the parent cascade's StartingStyle property type into the rollback cascade so starting-style declarations remain visible during rollback.

WebKit-Bug: https://bugs.webkit.org/show_bug.cgi?id=325359
WebKit-Canonical-Link: https://commits.webkit.org/322688@main

Component: web-platform-tests → CSS Transitions and Animations
Product: Testing → Core

CI Results

Ran 11 Firefox configurations based on mozilla-central, and Firefox, Chrome, and Safari on GitHub CI

Total 143 tests

Status Summary

Firefox

OK : 1[GitHub] 114[Gecko-android-em-14-x86_64-debug-geckoview] 115[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: 2[GitHub] 13[Gecko-linux2204-64-wayland-debug, Gecko-linux2204-64-wayland-opt] 1424[Gecko-windows11-32-25h2-debug, Gecko-windows11-32-25h2-opt] 1425[Gecko-android-em-14-x86_64-debug-geckoview] 1430[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-64-25h2-debug, Gecko-windows11-64-25h2-opt]
FAIL: 16

Chrome

OK : 1
PASS: 2

Safari

OK : 1
FAIL: 2

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Details

New Tests That Don't Pass

Tests Disabled in Gecko Infrastructure

Pushed by wptsync@mozilla.com: https://github.com/mozilla-firefox/firefox/commit/52f2eaa92969 https://hg.mozilla.org/integration/autoland/rev/4acb12079049 [wpt PR 63273] - [css-transitions] revert inside @starting-style drops lower-layer @starting-style declarations, a=testonly
Status: NEW → RESOLVED
Closed: 1 month ago
Resolution: --- → FIXED
Target Milestone: --- → 160 Branch
You need to log in before you can comment on or make changes to this bug.