mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 01:17:35 +00:00
LibWeb: Add the AnimationEvent IDL objects
This commit is contained in:
parent
3a87c000c4
commit
faaf5b9652
5 changed files with 105 additions and 0 deletions
17
Userland/Libraries/LibWeb/CSS/AnimationEvent.idl
Normal file
17
Userland/Libraries/LibWeb/CSS/AnimationEvent.idl
Normal file
|
@ -0,0 +1,17 @@
|
|||
#import <DOM/Event.idl>
|
||||
|
||||
// https://www.w3.org/TR/css-animations-1/#animationevent
|
||||
[Exposed=Window]
|
||||
interface AnimationEvent : Event {
|
||||
constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict = {});
|
||||
readonly attribute CSSOMString animationName;
|
||||
readonly attribute double elapsedTime;
|
||||
readonly attribute CSSOMString pseudoElement;
|
||||
};
|
||||
|
||||
// https://www.w3.org/TR/css-animations-1/#dictdef-animationeventinit
|
||||
dictionary AnimationEventInit : EventInit {
|
||||
CSSOMString animationName = "";
|
||||
double elapsedTime = 0.0;
|
||||
CSSOMString pseudoElement = "";
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue