2018-09-13 19:30:51 +00:00
|
|
|
/* -*- Mode: IDL; tab-width: 8; indent-tabs-mode: nil; c-basic-offset: 2 -*- */
|
|
|
|
/* vim: set ts=8 sts=2 et sw=2 tw=80: */
|
2014-07-16 00:02:31 +00:00
|
|
|
/* 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/.
|
|
|
|
*
|
|
|
|
* The origin of this IDL file is
|
|
|
|
* http://dev.w3.org/fxtf/web-animations/#the-animatable-interface
|
|
|
|
*
|
|
|
|
* Copyright © 2014 W3C® (MIT, ERCIM, Keio), All Rights Reserved. W3C
|
|
|
|
* liability, trademark and document use rules apply.
|
|
|
|
*/
|
|
|
|
|
2016-01-29 01:37:52 +00:00
|
|
|
dictionary KeyframeAnimationOptions : KeyframeEffectOptions {
|
|
|
|
DOMString id = "";
|
|
|
|
};
|
|
|
|
|
2016-03-22 00:33:02 +00:00
|
|
|
dictionary AnimationFilter {
|
|
|
|
boolean subtree = false;
|
|
|
|
};
|
|
|
|
|
2014-07-16 00:02:31 +00:00
|
|
|
[NoInterfaceObject]
|
|
|
|
interface Animatable {
|
2018-07-12 06:56:05 +00:00
|
|
|
[Throws]
|
2016-05-13 00:40:52 +00:00
|
|
|
Animation animate(object? keyframes,
|
2016-09-08 20:38:53 +00:00
|
|
|
optional UnrestrictedDoubleOrKeyframeAnimationOptions options);
|
2018-07-14 00:23:03 +00:00
|
|
|
[Func="nsDocument::IsWebAnimationsGetAnimationsEnabled"]
|
2016-03-22 00:33:02 +00:00
|
|
|
sequence<Animation> getAnimations(optional AnimationFilter filter);
|
2014-07-16 00:02:31 +00:00
|
|
|
};
|