[Web Animations] Update WPT tests related to Web Animations and remove imported Mozil...
[WebKit-https.git] / LayoutTests / imported / w3c / web-platform-tests / css / css-animations / idlharness.html
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   <style>
18     @keyframes test {
19       from { top: 0px; }
20       to { top: 1px; }
21     }
22   </style>
23
24   <script>
25     'use strict';
26
27     idl_test(
28       ['css-animations'],
29       ['html', 'dom', 'cssom'],
30       idl_array => {
31         try {
32           window.keyframes = document.styleSheets[0].cssRules[0];
33         } catch (e) {
34           // Surfaced in idlharness.js's test_object below.
35         }
36
37         idl_array.add_objects({
38           AnimationEvent: ['new AnimationEvent("animationstart")'],
39           CSSKeyframesRule: ['keyframes'],
40           CSSKeyframeRule: ['keyframes.cssRules[0]'],
41         });
42       }
43     );
44   </script>
45 </body>
46
47 </html>