This is still fairly incomplete (i.e. no capturing, etc), but it allows a transition to "start", and then finish (on the next frame always, for now) or timeout, appropriately. I think it's in a reviewable shape, given that. There's one known divergence from the spec, which is described in https://github.com/w3c/csswg-drafts/issues/10822 Differential Revision: https://phabricator.services.mozilla.com/D220843
15 lines
586 B
Plaintext
15 lines
586 B
Plaintext
/* This Source Code Form is subject to the terms of the Mozilla Public
|
|
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
|
|
* You can obtain one at http://mozilla.org/MPL/2.0/
|
|
*
|
|
* https://drafts.csswg.org/css-view-transitions-1/#the-domtransition-interface
|
|
*/
|
|
|
|
[Exposed=Window, Pref="dom.viewTransitions.enabled"]
|
|
interface ViewTransition {
|
|
[Throws] readonly attribute Promise<undefined> updateCallbackDone;
|
|
[Throws] readonly attribute Promise<undefined> ready;
|
|
[Throws] readonly attribute Promise<undefined> finished;
|
|
undefined skipTransition();
|
|
};
|