| OLD | NEW |
| 1 <!DOCTYPE html> | 1 <!DOCTYPE html> |
| 2 <meta charset="UTF-8"> | 2 <meta charset="UTF-8"> |
| 3 <style> | 3 <style> |
| 4 .layer-reference { | 4 .layer-reference { |
| 5 position: absolute; | 5 position: absolute; |
| 6 height: 300px; | 6 height: 300px; |
| 7 width: 50px; | 7 width: 50px; |
| 8 background-color: lightgrey; | 8 background-color: lightgrey; |
| 9 font-family: sans-serif; | 9 font-family: sans-serif; |
| 10 text-align: center; | 10 text-align: center; |
| (...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 47 from: '-5', | 47 from: '-5', |
| 48 to: '5' | 48 to: '5' |
| 49 }, [ | 49 }, [ |
| 50 {at: -0.3, is: '-8'}, | 50 {at: -0.3, is: '-8'}, |
| 51 {at: 0, is: '-5'}, | 51 {at: 0, is: '-5'}, |
| 52 {at: 0.3, is: '-2'}, | 52 {at: 0.3, is: '-2'}, |
| 53 {at: 0.6, is: '1'}, | 53 {at: 0.6, is: '1'}, |
| 54 {at: 1, is: '5'}, | 54 {at: 1, is: '5'}, |
| 55 {at: 1.5, is: '10'}, | 55 {at: 1.5, is: '10'}, |
| 56 ]); | 56 ]); |
| 57 assertInterpolation({ |
| 58 property: 'z-index', |
| 59 from: '2', |
| 60 to: '4' |
| 61 }, [ |
| 62 {at: -0.3, is: '1'}, |
| 63 {at: 0, is: '2'}, |
| 64 {at: 0.3, is: '3'}, |
| 65 {at: 0.6, is: '3'}, |
| 66 {at: 1, is: '4'}, |
| 67 {at: 1.5, is: '5'}, |
| 68 ]); |
| 69 assertInterpolation({ |
| 70 property: 'z-index', |
| 71 from: '-2', |
| 72 to: '-4' |
| 73 }, [ |
| 74 {at: -0.3, is: '-1'}, |
| 75 {at: 0, is: '-2'}, |
| 76 {at: 0.1, is: '-2'}, |
| 77 {at: 0.3, is: '-3'}, |
| 78 {at: 0.6, is: '-3'}, |
| 79 {at: 1, is: '-4'}, |
| 80 {at: 1.5, is: '-5'}, |
| 81 ]); |
| 57 afterTest(function() { | 82 afterTest(function() { |
| 58 var actives = document.querySelectorAll('.active'); | 83 var actives = document.querySelectorAll('.active'); |
| 59 var replicas = document.querySelectorAll('.replica'); | 84 var replicas = document.querySelectorAll('.replica'); |
| 60 for (var i = 0; i < actives.length; i++) { | 85 for (var i = 0; i < actives.length; i++) { |
| 61 actives[i].style.top = 50 + (i * 40) + 'px'; | 86 actives[i].style.top = 50 + (i * 40) + 'px'; |
| 62 replicas[i].style.top = 60 + (i * 40) + 'px'; | 87 replicas[i].style.top = 60 + (i * 40) + 'px'; |
| 63 } | 88 } |
| 64 }); | 89 }); |
| 65 </script> | 90 </script> |
| 66 </body> | 91 </body> |
| OLD | NEW |