Truly independent web browser
// https://drafts.csswg.org/web-animations-1/#the-compositeoperation-enumeration
enum CompositeOperation { "replace", "add", "accumulate" };
// https://drafts.csswg.org/web-animations-1/#enumdef-compositeoperationorauto
enum CompositeOperationOrAuto { "replace", "add", "accumulate", "auto" };
// https://drafts.csswg.org/web-animations-1/#the-keyframeeffectoptions-dictionary
dictionary KeyframeEffectOptions : EffectTiming {
CompositeOperation composite = "replace";
CSSOMString? pseudoElement = null;
};
// https://drafts.csswg.org/web-animations-1/#the-keyframeeffect-interface
[Exposed=Window, ImplementedIn=Rust]
interface KeyframeEffect : AnimationEffect {
[ImplementedAs=construct] constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options = {});
[ImplementedAs=construct_from_source] constructor(KeyframeEffect source);
attribute Element? target;
attribute CSSOMString? pseudoElement;
attribute CompositeOperation composite;
sequence<object> getKeyframes();
undefined setKeyframes(object? keyframes);
};