Meta: Ensure that idl files link to draft specs

This commit is contained in:
Psychpsyo
2026-03-23 12:09:30 +01:00
committed by Sam Atkins
parent 633b684d76
commit bd91567863
Notes: github-actions[bot] 2026-03-25 16:03:18 +00:00
51 changed files with 89 additions and 76 deletions

View File

@@ -1,33 +1,33 @@
#import <Animations/AnimationEffect.idl>
#import <DOM/Element.idl>
// https://www.w3.org/TR/web-animations-1/#the-compositeoperation-enumeration
// https://drafts.csswg.org/web-animations-1/#the-compositeoperation-enumeration
enum CompositeOperation { "replace", "add", "accumulate" };
// https://www.w3.org/TR/web-animations-1/#enumdef-compositeoperationorauto
// https://drafts.csswg.org/web-animations-1/#enumdef-compositeoperationorauto
enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
// https://www.w3.org/TR/web-animations-1/#the-keyframeeffectoptions-dictionary
// https://drafts.csswg.org/web-animations-1/#the-keyframeeffectoptions-dictionary
dictionary KeyframeEffectOptions : EffectTiming {
CompositeOperation composite = "replace";
CSSOMString? pseudoElement = null;
};
// https://www.w3.org/TR/web-animations-1/#dictdef-basepropertyindexedkeyframe
// https://drafts.csswg.org/web-animations-1/#dictdef-basepropertyindexedkeyframe
dictionary BasePropertyIndexedKeyframe {
(double? or sequence<double?>) offset = [];
(DOMString or sequence<DOMString>) easing = [];
(CompositeOperationOrAuto or sequence<CompositeOperationOrAuto>) composite = [];
};
// https://www.w3.org/TR/web-animations-1/#dictdef-basekeyframe
// https://drafts.csswg.org/web-animations-1/#dictdef-basekeyframe
dictionary BaseKeyframe {
double? offset = null;
DOMString easing = "linear";
CompositeOperationOrAuto composite = "auto";
};
// https://www.w3.org/TR/web-animations-1/#the-keyframeeffect-interface
// https://drafts.csswg.org/web-animations-1/#the-keyframeeffect-interface
[Exposed=Window]
interface KeyframeEffect : AnimationEffect {
constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options = {});