mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
36 lines
1.2 KiB
Text
36 lines
1.2 KiB
Text
// GENERATED CONTENT - DO NOT EDIT
|
|
// Content of this file was automatically extracted from the
|
|
// "CSS Animation Worklet API" spec.
|
|
// See: https://wicg.github.io/animation-worklet/
|
|
|
|
partial interface Window {
|
|
[SameObject] readonly attribute Worklet animationWorklet;
|
|
};
|
|
|
|
callback VoidFunction = void ();
|
|
|
|
[ Exposed=AnimationWorklet, Global=AnimationWorklet ]
|
|
interface AnimationWorkletGlobalScope : WorkletGlobalScope {
|
|
void registerAnimator(DOMString name, VoidFunction animatorCtor);
|
|
};
|
|
|
|
[Constructor (DOMString animatorName,
|
|
optional (AnimationEffectReadOnly or sequence)? effects = null,
|
|
optional AnimationTimeline? timeline,
|
|
optional any options)]
|
|
interface WorkletAnimation : Animation {
|
|
readonly attribute DOMString animatorName;
|
|
};
|
|
|
|
|
|
interface WorkletGroupEffectReadOnly : GroupEffectReadOnly {};
|
|
|
|
interface WorkletGroupEffect : WorkletGroupEffectReadOnly {};
|
|
WorkletGroupEffect implements AnimationEffectMutable;
|
|
WorkletGroupEffect implements GroupEffectMutable;
|
|
|
|
[Exposed=AnimationWorklet]
|
|
partial interface AnimationEffectReadOnly {
|
|
// Intended for use inside Animation Worklet scope to drive the effect.
|
|
attribute double localTime;
|
|
};
|