Skip to content

Truly independent web browser

1.1 KB
Raw Blame
// https://drafts.csswg.org/css-animations-1/#animationevent
// https://drafts.csswg.org/css-animations-2/#interface-animationevent
[Exposed=Window, ImplementedIn=Rust]
interface AnimationEvent : Event {
    constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
    readonly attribute CSSOMString animationName;
    readonly attribute double elapsedTime;
    readonly attribute CSSOMString pseudoElement;
    readonly attribute CSSAnimation? animation;
};

// https://drafts.csswg.org/css-animations-1/#dictdef-animationeventinit
// https://drafts.csswg.org/css-animations-2/#interface-animationevent
dictionary AnimationEventInit : EventInit {
    CSSOMString animationName = "";
    double elapsedTime = 0.0;
    CSSOMString pseudoElement = "";
    CSSAnimation? animation = null;
};

// https://drafts.csswg.org/css-animations/#interface-globaleventhandlers-idl
partial interface mixin GlobalEventHandlers {
    attribute EventHandler onanimationcancel;
    attribute EventHandler onanimationend;
    attribute EventHandler onanimationiteration;
    attribute EventHandler onanimationstart;
};