The test change is needed to avoid ERROR status due to the previous transition getting skipped when starting a new one. The rest is somewhat straight-forward. Differential Revision: https://phabricator.services.mozilla.com/D273740
33 lines
1.1 KiB
Plaintext
33 lines
1.1 KiB
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-2/#the-domtransition-interface
|
|
* https://drafts.csswg.org/css-view-transitions-2/#viewtransitiontypeset
|
|
*/
|
|
|
|
[Exposed=Window, Pref="dom.viewTransitions.enabled"]
|
|
interface ViewTransitionTypeSet {
|
|
setlike<DOMString>;
|
|
};
|
|
|
|
// Setlike methods that need to be overridden to keep the contents in sync with
|
|
// the C++ version, see bug 1799890 and bug 1822927.
|
|
partial interface ViewTransitionTypeSet {
|
|
[Throws]
|
|
ViewTransitionTypeSet add(DOMString type);
|
|
[Throws]
|
|
undefined clear();
|
|
[Throws]
|
|
boolean delete(DOMString type);
|
|
};
|
|
|
|
[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();
|
|
[SameObject] readonly attribute ViewTransitionTypeSet types;
|
|
};
|