| <!doctype html> |
| <script src="../resources/testharness.js"></script> |
| <script src="../resources/testharnessreport.js"></script> |
| <script> |
| test(function(){ |
| var div = document.createElement('div'); |
| div.style.animationName = 'anim'; |
| assert_equals(div.style.cssText, 'animation-name: anim;'); |
| div.style.animationName = "\\ "; |
| assert_equals(div.style.cssText, 'animation-name: \\ ;'); |
| div.style.animation = 'hello 2s'; |
| assert_equals(div.style.cssText, 'animation: hello 2s ease 0s 1 normal none running;'); |
| }, 'cssText serializes animation properties sanely'); |
| </script> |