idlharness.html (1106B)
1 <!DOCTYPE html> 2 <html> 3 4 <head> 5 <meta charset="utf-8"> 6 <title>css-animations IDL tests</title> 7 <meta name="timeout" content="long"> 8 <link rel="help" href="https://drafts.csswg.org/css-animations/"> 9 <script src="/resources/testharness.js"></script> 10 <script src="/resources/testharnessreport.js"></script> 11 <script src="/resources/WebIDLParser.js"></script> 12 <script src="/resources/idlharness.js"></script> 13 </head> 14 15 <body> 16 <div id="log"></div> 17 18 <style> 19 @keyframes test { 20 from { top: 0px; } 21 to { top: 1px; } 22 } 23 </style> 24 25 <script> 26 'use strict'; 27 28 idl_test( 29 ['css-animations'], 30 ['html', 'dom', 'cssom'], 31 idl_array => { 32 try { 33 window.keyframes = document.styleSheets[0].cssRules[0]; 34 } catch (e) { 35 // Surfaced in idlharness.js's test_object below. 36 } 37 38 idl_array.add_objects({ 39 AnimationEvent: ['new AnimationEvent("animationstart")'], 40 CSSKeyframesRule: ['keyframes'], 41 CSSKeyframeRule: ['keyframes.cssRules[0]'], 42 }); 43 } 44 ); 45 </script> 46 </body> 47 48 </html>