Files
tubestation/dom/webidl/ViewTransition.webidl
Emilio Cobos Álvarez 83a5b7cb8d Bug 1916311 - [css-view-transitions] Initial pass at DOM API internals. r=boris,webidl,smaug
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
2024-09-04 20:24:55 +00:00

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();
};