Skip to content

Commit b5463ad

Browse files
committed
feat(types): add css-animations-2/css-transitions-2
1 parent b0a63e3 commit b5463ad

File tree

2 files changed

+36
-0
lines changed

2 files changed

+36
-0
lines changed

baselines/dom.generated.d.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2590,6 +2590,19 @@ declare var CDATASection: {
25902590
new(): CDATASection;
25912591
};
25922592

2593+
interface CSSAnimation extends Animation {
2594+
readonly animationName: string;
2595+
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
2596+
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
2597+
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSAnimation, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
2598+
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
2599+
}
2600+
2601+
declare var CSSAnimation: {
2602+
prototype: CSSAnimation;
2603+
new(): CSSAnimation;
2604+
};
2605+
25932606
/** A single condition CSS at-rule, which consists of a condition and a statement block. It is a child of CSSGroupingRule. */
25942607
interface CSSConditionRule extends CSSGroupingRule {
25952608
conditionText: string;
@@ -3261,6 +3274,19 @@ declare var CSSSupportsRule: {
32613274
new(): CSSSupportsRule;
32623275
};
32633276

3277+
interface CSSTransition extends Animation {
3278+
readonly transitionProperty: string;
3279+
addEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | AddEventListenerOptions): void;
3280+
addEventListener(type: string, listener: EventListener, options?: boolean | AddEventListenerOptions): void;
3281+
removeEventListener<K extends keyof AnimationEventMap>(type: K, listener: (this: CSSTransition, ev: AnimationEventMap[K]) => any, options?: boolean | EventListenerOptions): void;
3282+
removeEventListener(type: string, listener: EventListener, options?: boolean | EventListenerOptions): void;
3283+
}
3284+
3285+
declare var CSSTransition: {
3286+
prototype: CSSTransition;
3287+
new(): CSSTransition;
3288+
};
3289+
32643290
/** Provides a storage mechanism for Request / Response object pairs that are cached, for example as part of the ServiceWorker life cycle. Note that the Cache interface is exposed to windowed scopes as well as workers. You don't have to use it in conjunction with service workers, even though it is defined in the service worker spec. */
32653291
interface Cache {
32663292
add(request: RequestInfo): Promise<void>;

inputfiles/idlSources.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,11 @@
4444
"title": "CSS Animations",
4545
"shortName": "css-animations"
4646
},
47+
{
48+
"url": "https://drafts.csswg.org/css-animations-2/",
49+
"title": "CSS Animations Level 2",
50+
"shortName": "css-animations-2"
51+
},
4752
{
4853
"url": "https://www.w3.org/TR/css-backgrounds-3/",
4954
"title": "CSS Backgrounds and Borders",
@@ -224,6 +229,11 @@
224229
"title": "CSS Transitions",
225230
"shortName": "css-transitions"
226231
},
232+
{
233+
"url": "https://drafts.csswg.org/css-transitions-2/",
234+
"title": "CSS Transitions Level 2",
235+
"shortName": "css-transitions-2"
236+
},
227237
{
228238
"url": "https://www.w3.org/TR/css-transforms-1/",
229239
"title": "CSS Transforms",

0 commit comments

Comments
 (0)