servo/tests/wpt/web-platform-tests/interfaces/animation-worklet.idl

36 lines
1.2 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;
};
[ Global=(Worklet,AnimationWorklet), Exposed=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;
};