Closed Bug 1943046 Opened 1 month ago Closed 27 days ago

[wpt-sync] Sync PR 50214 - Correctly cascade before-change style for @starting-style

Categories

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

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: wpt-sync, Unassigned)

References

()

Details

(Whiteboard: [wptsync downstream])

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

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

Rune Lillesveen <futhark@chromium.org> wrote:

Correctly cascade before-change style for @starting-style

Before-change style should inherit from parent after-change style for
@starting-style. That means we need to cascade after-change separately
also for before-change style in this case.

This CL separates out ensuring of after-change style so that it can be
shared between before- and after-change style computations.

Also, the StyleRecalcContext must be set up correctly with old_style to
ensure that:

  1. @starting-style rules are not applied for after-change style.
  2. @starting-style rules are applied for before-change style when
    @starting-style is the before-change for a given style resolution.

Bug: 40337057

Change-Id: I92af1934fbab45bb294ea92055ec3be373a8caa5
Reviewed-on: https://chromium-review.googlesource.com/6185041
WPT-Export-Revision: fa8f554fb9e13ad457b01b7ed1a80df871d76801

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

CI Results

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

Total 1 tests and 5 subtests

Status Summary

Firefox

OK : 1
PASS: 5

Chrome

OK : 1
PASS: 4
FAIL: 1

Links

Gecko CI (Treeherder)
GitHub PR Head
GitHub PR Base

Pushed by wptsync@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/41ccd510e590 [wpt PR 50214] - Correctly cascade before-change style for @starting-style, a=testonly
Status: NEW → RESOLVED
Closed: 27 days ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
You need to log in before you can comment on or make changes to this bug.