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