animation-name-computed.html (2053B)
1 <!DOCTYPE html> 2 <html> 3 <head> 4 <meta charset="utf-8"> 5 <title>CSS Animations: getComputedStyle().animationName</title> 6 <link rel="help" href="https://drafts.csswg.org/css-animations/#propdef-animation-name"> 7 <meta name="assert" content="animation-name computed value is as specified."> 8 <script src="/resources/testharness.js"></script> 9 <script src="/resources/testharnessreport.js"></script> 10 <script src="/css/support/computed-testcommon.js"></script> 11 </head> 12 <body> 13 <div id="target"></div> 14 <script> 15 test_computed_value("animation-name", 'none'); 16 test_computed_value("animation-name", 'NONE', 'none'); 17 18 test_computed_value("animation-name", 'foo'); 19 test_computed_value("animation-name", 'Both'); 20 test_computed_value("animation-name", 'ease-in'); 21 test_computed_value("animation-name", 'infinite'); 22 test_computed_value("animation-name", 'paused'); 23 test_computed_value("animation-name", 'first, second, third'); 24 25 test_computed_value("animation-name", '"something"', 'something'); 26 test_computed_value("animation-name", '"---\\22---"', '---\\\"---'); 27 test_computed_value("animation-name", '"multi word string"', 'multi\\ word\\ string'); 28 29 // Restricted keywords as strings 30 test_computed_value("animation-name", '"none"'); 31 test_computed_value("animation-name", '"none", "INITIAL", "inherit"'); 32 test_computed_value("animation-name", '"none", both, ease-in'); 33 test_computed_value("animation-name", '"NoNe"'); 34 test_computed_value("animation-name", '"initial"'); 35 test_computed_value("animation-name", '"INITIAL"'); 36 test_computed_value("animation-name", '"inherit"'); 37 test_computed_value("animation-name", '"INHERIT"'); 38 test_computed_value("animation-name", '"revert"'); 39 test_computed_value("animation-name", '"REVERT"'); 40 test_computed_value("animation-name", '"revert-layer"'); 41 test_computed_value("animation-name", '"REVERT-LAYER"'); 42 test_computed_value("animation-name", '"unset"'); 43 test_computed_value("animation-name", '"UNSET"'); 44 test_computed_value("animation-name", '"default"'); 45 test_computed_value("animation-name", '"DEFAULT"'); 46 </script> 47 </body> 48 </html>