css-animations.idl (1544B)
1 // GENERATED CONTENT - DO NOT EDIT 2 // Content was automatically extracted by Reffy into webref 3 // (https://github.com/w3c/webref) 4 // Source: CSS Animations Module Level 1 (https://drafts.csswg.org/css-animations-1/) 5 6 [Exposed=Window] 7 interface AnimationEvent : Event { 8 constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {}); 9 readonly attribute CSSOMString animationName; 10 readonly attribute double elapsedTime; 11 readonly attribute CSSOMString pseudoElement; 12 }; 13 dictionary AnimationEventInit : EventInit { 14 CSSOMString animationName = ""; 15 double elapsedTime = 0.0; 16 CSSOMString pseudoElement = ""; 17 }; 18 19 partial interface CSSRule { 20 const unsigned short KEYFRAMES_RULE = 7; 21 const unsigned short KEYFRAME_RULE = 8; 22 }; 23 24 [Exposed=Window] 25 interface CSSKeyframeRule : CSSRule { 26 attribute CSSOMString keyText; 27 [SameObject, PutForwards=cssText] readonly attribute CSSStyleProperties style; 28 }; 29 30 [Exposed=Window] 31 interface CSSKeyframesRule : CSSRule { 32 attribute CSSOMString name; 33 readonly attribute CSSRuleList cssRules; 34 readonly attribute unsigned long length; 35 36 getter CSSKeyframeRule (unsigned long index); 37 undefined appendRule(CSSOMString rule); 38 undefined deleteRule(CSSOMString select); 39 CSSKeyframeRule? findRule(CSSOMString select); 40 }; 41 42 partial interface mixin GlobalEventHandlers { 43 attribute EventHandler onanimationstart; 44 attribute EventHandler onanimationiteration; 45 attribute EventHandler onanimationend; 46 attribute EventHandler onanimationcancel; 47 };