2026-03-23 08:09:30 -03:00
|
|
|
// https://drafts.csswg.org/css-animations-1/#animationevent
|
2023-11-04 18:00:09 -03:00
|
|
|
[Exposed=Window]
|
|
|
|
|
interface AnimationEvent : Event {
|
2024-09-10 04:21:16 -03:00
|
|
|
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
|
|
|
|
|
readonly attribute CSSOMString animationName;
|
|
|
|
|
readonly attribute double elapsedTime;
|
|
|
|
|
readonly attribute CSSOMString pseudoElement;
|
2023-11-04 18:00:09 -03:00
|
|
|
};
|
|
|
|
|
|
2026-03-23 08:09:30 -03:00
|
|
|
// https://drafts.csswg.org/css-animations-1/#dictdef-animationeventinit
|
2023-11-04 18:00:09 -03:00
|
|
|
dictionary AnimationEventInit : EventInit {
|
2024-09-10 04:21:16 -03:00
|
|
|
CSSOMString animationName = "";
|
|
|
|
|
double elapsedTime = 0.0;
|
|
|
|
|
CSSOMString pseudoElement = "";
|
2023-11-04 18:00:09 -03:00
|
|
|
};
|
2026-01-12 13:23:49 -03:00
|
|
|
|
|
|
|
|
// 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;
|
|
|
|
|
};
|