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 @-webkit-keyframes "string id" { | 5 @-webkit-keyframes "string id" { |
6 from { background: green; } | 6 from { background: green; } |
7 to { background: green; } | 7 to { background: green; } |
8 } | 8 } |
9 #target { | 9 #target { |
10 background: red; | 10 background: red; |
11 -webkit-animation: "string id" 1s forwards; | 11 -webkit-animation: "string id" 1s forwards; |
12 } | 12 } |
13 </style> | 13 </style> |
14 <div id="target"></div> | 14 <div id="target"></div> |
15 <script> | 15 <script> |
16 test(function() { | 16 test(function() { |
17 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'); | 17 assert_equals(getComputedStyle(target).backgroundColor, 'rgb(0, 128, 0)'); |
18 }, 'Check that strings are permitted as @keyframes identifiers'); | 18 }, 'Check that strings are permitted as @-webkit-keyframes identifiers'); |
19 </script> | 19 </script> |
OLD | NEW |