mirror of
https://github.com/servo/servo.git
synced 2025-07-11 17:33:47 +01:00
46 lines
1.5 KiB
Text
46 lines
1.5 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content was automatically extracted by Reffy into reffy-reports
|
|
// (https://github.com/tidoust/reffy-reports)
|
|
// Source: CSS Animation Worklet API (https://wicg.github.io/animation-worklet/)
|
|
|
|
[Exposed=Window]
|
|
partial namespace CSS {
|
|
[SameObject] readonly attribute Worklet animationWorklet;
|
|
};
|
|
|
|
[Exposed=AnimationWorklet, Global=AnimationWorklet, Constructor (optional any options)]
|
|
interface StatelessAnimator {
|
|
};
|
|
|
|
[Exposed=AnimationWorklet, Global=AnimationWorklet,
|
|
Constructor (optional any options, optional any state)]
|
|
interface StatefulAnimator {
|
|
any state();
|
|
};
|
|
|
|
[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
|
|
interface AnimationWorkletGlobalScope : WorkletGlobalScope {
|
|
void registerAnimator(DOMString name, AnimatorInstanceConstructor animatorCtor);
|
|
};
|
|
|
|
callback AnimatorInstanceConstructor = any (any options, optional any state);
|
|
|
|
[Exposed=Window,
|
|
Constructor (DOMString animatorName,
|
|
optional (AnimationEffect or sequence<AnimationEffect>)? effects = null,
|
|
optional AnimationTimeline? timeline,
|
|
optional any options)]
|
|
interface WorkletAnimation : Animation {
|
|
readonly attribute DOMString animatorName;
|
|
};
|
|
|
|
[Exposed=AnimationWorklet]
|
|
interface WorkletGroupEffect {
|
|
sequence<AnimationEffect> getChildren();
|
|
};
|
|
|
|
[Exposed=AnimationWorklet]
|
|
partial interface AnimationEffect {
|
|
// Intended for use inside Animation Worklet scope to drive the effect.
|
|
attribute double localTime;
|
|
};
|