OLD | NEW |
1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
2 <script src="../resources/testharness.js"></script> | 2 <script src="../../resources/testharness.js"></script> |
3 <script src="../resources/testharnessreport.js"></script> | 3 <script src="../../resources/testharnessreport.js"></script> |
4 <style> | 4 <style> |
5 @keyframes "anim" { | 5 @keyframes "anim" { |
6 from { background: red; } | 6 from { background: red; } |
7 to { background: red; } | 7 to { background: red; } |
8 } | 8 } |
9 | 9 |
10 #target { | 10 #target { |
11 animation: anim 1s forwards; | 11 animation: anim 1s forwards; |
12 background: green; | 12 background: green; |
13 } | 13 } |
14 </style> | 14 </style> |
15 <div id="target"></div> | 15 <div id="target"></div> |
16 <script> | 16 <script> |
17 test(function() { | 17 test(function() { |
18 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'); | 18 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'); |
19 }, 'Check that unprefixed keyframe names cannot be strings'); | 19 }, 'Check that unprefixed keyframe names cannot be strings'); |
20 </script> | 20 </script> |
OLD | NEW |