blob: f9ffc304bb3e794ceecfe049c270657e89f8b828 [file] [log] [blame]
<!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: 2s ease 0s 1 normal none running hello;');
}, 'cssText serializes animation properties sanely');
</script>