Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / shorthand-unitless-zero.html
bloba60a33829512cc513f029b49ef4f08df30d381f2
1 <!DOCTYPE html>
2 <script src="../resources/testharness.js"></script>
3 <script src="../resources/testharnessreport.js"></script>
4 <style>
5 #test1 { animation: anim 1s 0; }
6 #test2 { animation: anim 0 2s; }
7 </style>
8 <div id="test1"></div>
9 <div id="test2"></div>
10 <script>
11 test(function() {
12 assert_equals(getComputedStyle(test1).animationIterationCount, '0');
13 assert_equals(getComputedStyle(test2).animationIterationCount, '0');
14 assert_equals(getComputedStyle(test1).animationDuration, '1s');
15 assert_equals(getComputedStyle(test2).animationDuration, '2s');
16 }, 'Unitless 0 in animation shorthand should not be parsed as a delay or duration');
17 </script>