Closed Bug 1914322 Opened 1 year ago Closed 1 year ago

[css-view-transitions] Hook into the refresh driver.

Categories

(Core :: CSS Parsing and Computation, task)

task

Tracking

()

RESOLVED FIXED
136 Branch
Tracking Status
firefox136 --- fixed

People

(Reporter: emilio, Assigned: boris)

References

(Blocks 1 open bug)

Details

(Whiteboard: [viewtransitions:m1], [wptsync upstream])

Attachments

(1 file)

Once we have the snapshot and pseudo-element machinery, we need to hook the view transitions into the refresh driver code in order to perform the operations at the right time: https://html.spec.whatwg.org/#event-loop-processing-model:perform-pending-transition-operations

Whiteboard: [viewtransitions:m1]
Assignee: nobody → boris.chiou
Status: NEW → ASSIGNED

Basically, we have to schedule the performing pending operations after
activating the view transitions, and stop to do that once we don't have
active animations.

There is one known issue: we always timeout even if we activate the view
transitions successfully, so I clear the timeout once we start the animations.
Otherwise, we may always interrupt the long animations whose
durations are longer than dom.viewTransitions.timeout-ms. However, I
guess we may still need a timeout for it. We probably need to figure out
what to do in the future.

Note that /css/css-view-transitions/paused-animation-at-end.html.ini
is failed because we don't have any animations. This is probably blocked by
the dynamic UA stylesheet (Bug 1914324).

Also, update some other tests to avoid getting javascript errors:
JavaScript error: , line 0: uncaught exception: Object.

Pushed by bchiou@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/a8038a8d30ef Perform pending operations when the view transition is animating. r=view-transitions-reviewers,emilio
Created web-platform-tests PR https://github.com/web-platform-tests/wpt/pull/50403 for changes under testing/web-platform/tests
Whiteboard: [viewtransitions:m1] → [viewtransitions:m1], [wptsync upstream]
Status: ASSIGNED → RESOLVED
Closed: 1 year ago
Resolution: --- → FIXED
Target Milestone: --- → 136 Branch
Duplicate of this bug: 1918404
Upstream PR merged by moz-wptsync-bot
Upstream PR merged by moz-wptsync-bot
Duplicate of this bug: 1902734
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: