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 .start { | 5 .start { |
6 animation: anim 1ms; | 6 animation: anim 1ms; |
7 } | 7 } |
8 | 8 |
9 @keyframes anim { | 9 @keyframes anim { |
10 0% { | 10 0% { |
11 transform: translate3d(0, 0, 1px); | 11 transform: translate3d(0, 0, 1px); |
12 } | 12 } |
13 100% { | 13 100% { |
14 transform: translate3d(0, 0, 0); | 14 transform: translate3d(0, 0, 0); |
15 } | 15 } |
16 } | 16 } |
17 </style> | 17 </style> |
18 <body> | 18 <body>x |
19 <script> | 19 <script> |
20 'use strict'; | 20 'use strict'; |
21 async_test(function(t) { | 21 async_test(function(t) { |
22 | 22 |
23 requestAnimationFrame(function() { | 23 requestAnimationFrame(function() { |
24 document.body.classList.add('start'); | 24 document.body.classList.add('start'); |
25 | 25 |
26 // Force a style resolve, to ensure the animation is created. | 26 // Force a style resolve, to ensure the animation is created. |
27 document.body.offsetTop; | 27 document.body.offsetTop; |
28 | 28 |
(...skipping 15 matching lines...) Expand all Loading... |
44 | 44 |
45 // We missed the opportunity to add a start event listener | 45 // We missed the opportunity to add a start event listener |
46 // before the animation started. This test might flakily | 46 // before the animation started. This test might flakily |
47 // pass even if the implementation is incorrect. | 47 // pass even if the implementation is incorrect. |
48 t.done(); | 48 t.done(); |
49 } | 49 } |
50 }, 0); | 50 }, 0); |
51 }); | 51 }); |
52 }); | 52 }); |
53 </script> | 53 </script> |
OLD | NEW |