Skip to content

Commit 726bce7

Browse files
authored
Update the css-animations IDL file (web-platform-tests#9768)
1 parent 28b5323 commit 726bce7

File tree

2 files changed

+81
-0
lines changed

2 files changed

+81
-0
lines changed

css/css-animations/idlharness.html

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<!DOCTYPE html>
2+
<html>
3+
4+
<head>
5+
<meta charset="utf-8">
6+
<title>css-animations IDL tests</title>
7+
<link rel="help" href="https://drafts.csswg.org/css-animations/">
8+
<script src="/resources/testharness.js"></script>
9+
<script src="/resources/testharnessreport.js"></script>
10+
<script src="/resources/WebIDLParser.js"></script>
11+
<script src="/resources/idlharness.js"></script>
12+
</head>
13+
14+
<body>
15+
<div id="log"></div>
16+
17+
<script>
18+
'use strict';
19+
20+
promise_test(async () => {
21+
const idl = await fetch('/interfaces/css-animations.idl').then(r => r.text());
22+
const cssom = await fetch('/interfaces/cssom.idl').then(r => r.text());
23+
const dom = await fetch('/interfaces/dom.idl').then(r => r.text());
24+
25+
const idl_array = new IdlArray();
26+
idl_array.add_idls(idl);
27+
idl_array.add_dependency_idls(cssom);
28+
idl_array.add_dependency_idls(dom);
29+
30+
idl_array.test();
31+
}, 'Test css-animations IDL implementation');
32+
</script>
33+
34+
</body>
35+
36+
</html>

interfaces/css-animations.idl

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
// GENERATED CONTENT - DO NOT EDIT
2+
// Content of this file was automatically extracted from the
3+
// "CSS Animations Level 1" spec.
4+
// See: https://drafts.csswg.org/css-animations/
5+
6+
[Exposed=Window,
7+
Constructor(CSSOMString type, optional AnimationEventInit animationEventInitDict)]
8+
interface AnimationEvent : Event {
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 CSSStyleDeclaration style;
28+
};
29+
30+
[Exposed=Window]
31+
interface CSSKeyframesRule : CSSRule {
32+
attribute CSSOMString name;
33+
readonly attribute CSSRuleList cssRules;
34+
35+
void appendRule(CSSOMString rule);
36+
void deleteRule(CSSOMString select);
37+
CSSKeyframeRule? findRule(CSSOMString select);
38+
};
39+
40+
partial interface GlobalEventHandlers {
41+
attribute EventHandler onanimationstart;
42+
attribute EventHandler onanimationiteration;
43+
attribute EventHandler onanimationend;
44+
attribute EventHandler onanimationcancel;
45+
};

0 commit comments

Comments
 (0)