LibWeb/CSS: Add the TransitionEvent type

This commit is contained in:
Lucas CHOLLET 2024-12-22 15:12:13 -05:00 committed by Andreas Kling
commit 55b4a983a7
Notes: github-actions[bot] 2024-12-25 16:15:39 +00:00
8 changed files with 379 additions and 0 deletions

View file

@ -0,0 +1,16 @@
#import <DOM/Event.idl>
// https://drafts.csswg.org/css-transitions/#transitionevent
[Exposed=Window]
interface TransitionEvent : Event {
constructor(CSSOMString type, optional TransitionEventInit transitionEventInitDict = {});
readonly attribute CSSOMString propertyName;
readonly attribute double elapsedTime;
readonly attribute CSSOMString pseudoElement;
};
dictionary TransitionEventInit : EventInit {
CSSOMString propertyName = "";
double elapsedTime = 0.0;
CSSOMString pseudoElement = "";
};