blob: 4a0c0aa4b5bc8e78645a30a35e5cb290cda7ab7b [file] [log] [blame]
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
// https://w3c.github.io/web-animations/#the-keyframeeffect-interfaces
enum CompositeOperation { "replace", "add", "accumulate" };
[
Constructor(Element? target, object? keyframes, optional (unrestricted double or KeyframeEffectOptions) options),
Constructor(KeyframeEffectReadOnly source),
ConstructorCallWith=ScriptState,
RaisesException=Constructor,
RuntimeEnabled=WebAnimationsAPI
] interface KeyframeEffectReadOnly : AnimationEffectReadOnly {
readonly attribute CompositeOperation composite;
[CallWith=ScriptState] sequence<object> getKeyframes();
};