animation-iteration-count-calc.html (736B)
1 <!doctype html> 2 <meta charset="utf-8"> 3 <title>CSS Test: Animation count accepts calc()</title> 4 <link rel="author" name="Emilio Cobos Álvarez" href="mailto:emilio@crisal.io"> 5 <link rel="help" href="https://drafts.csswg.org/css-values-3/#number-value"> 6 <link rel="help" href="https://drafts.csswg.org/css-animations/#animation-iteration-count"> 7 <script src="/resources/testharness.js"></script> 8 <script src="/resources/testharnessreport.js"></script> 9 <div id="target" style="animation-iteration-count: calc(1 + 3)"> 10 <script> 11 test(function() { 12 let target = document.getElementById("target"); 13 assert_equals(getComputedStyle(target).animationIterationCount, "4") 14 }, "calc() should be accepted in animation-iteration-count."); 15 </script>