blob: 0349a7249b06b2ceef1b5e01eeca9c851884465a [file] [log] [blame] [edit]
<!DOCTYPE html>
<body>
<script src="../../resources/js-test-pre.js"></script>
<div id="testDiv"></div>
<script>
description("Tests assigning using calculated value in steps() for -webkit-animation-timing-function works.");
var testDiv = document.getElementById("testDiv");
shouldBeEmptyString("testDiv.style['-webkit-animation-timing-function']");
evalAndLog("testDiv.style['-webkit-animation-timing-function'] = 'steps(calc(1 + 2), end)'");
shouldBeEqualToString("testDiv.style['-webkit-animation-timing-function']", "steps(calc(3))");
shouldBeEqualToString("window.getComputedStyle(testDiv).getPropertyValue('-webkit-animation-timing-function')", "steps(3)");
</script>
<script src="../../resources/js-test-post.js"></script>
</body>