| OLD | NEW |
| 1 <!DOCTYPE html> |
| 2 <meta charset="utf-8"> |
| 1 <script src="../resources/testharness.js"></script> | 3 <script src="../resources/testharness.js"></script> |
| 2 <script src="../resources/testharnessreport.js"></script> | 4 <script src="../resources/testharnessreport.js"></script> |
| 3 <style> | 5 <style> |
| 4 @keyframes test { | 6 @keyframes test { |
| 5 from { | 7 from { |
| 6 /* These properties have -webkit-* equivalents. */ | 8 /* These properties have -webkit-* equivalents. */ |
| 7 background-size: 10px 10px; | 9 background-size: 10px 10px; |
| 8 box-shadow: 10px 10px green; | 10 box-shadow: 10px 10px green; |
| 9 perspective: 10px; | 11 perspective: 10px; |
| 10 transform: translate(10px, 10px); | 12 transform: translate(10px, 10px); |
| 11 perspective-origin: 10px 10px; | 13 perspective-origin: 10px 10px; |
| 12 transform-origin: 10px 10px; | 14 transform-origin: 10px 10px; |
| 13 } | 15 } |
| 14 } | 16 } |
| 15 #target { | 17 #target { |
| 16 animation: test 1s; | 18 animation: test 1s; |
| 17 transition: all 1s; | 19 transition: all 1s; |
| 18 } | 20 } |
| 19 </style> | 21 </style> |
| 20 <div id="target"></div> | 22 <div id="target"></div> |
| 21 <script> | 23 <script> |
| 22 var asyncHandle = async_test('Don\'t crash when animating transitioned propertie
s'); | 24 'use strict'; |
| 23 var frameWait = 7; | 25 async_test(t => { |
| 24 function frame() { | 26 let frameWait = 5; |
| 25 frameWait--; | 27 function frame() { |
| 26 if (frameWait) { | 28 frameWait--; |
| 27 requestAnimationFrame(frame); | 29 if (frameWait) { |
| 28 } else { | 30 requestAnimationFrame(frame); |
| 29 asyncHandle.done(); | 31 } else { |
| 32 t.done(); |
| 33 } |
| 30 } | 34 } |
| 31 } | 35 requestAnimationFrame(frame); |
| 32 requestAnimationFrame(frame); | 36 }, 'Don\'t crash when animating transitioned properties'); |
| 33 </script> | 37 </script> |
| OLD | NEW |