5 <style type=
"text/css">
9 background-color: blue
;
13 -webkit-animation: anim
2s linear
;
17 -webkit-animation: anim2
2s linear
;
20 @
-webkit-keyframes anim
{
21 from
{ transform: perspective
(100px); }
22 to
{ transform: perspective
(200px); }
25 @
-webkit-keyframes anim2
{
26 from
{ transform: perspective
(1000px); }
27 to
{ transform: none
; }
30 <script src=
"../resources/animation-test-helpers.js" type=
"text/javascript"></script>
31 <script type=
"text/javascript">
32 const expectedValues
= [
33 // [time, element-id, property, expected-value, tolerance]
34 [0.5, "box", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.0075, 0, 0, 0, 1)", 0.002],
35 [0.5, "box2", "transform", "matrix3d(1, 0, 0, 0, 0, 1, 0, 0, 0, 0, 1, -0.00199, 0, 0, 0, 1)", 0.002],
40 var box
= document
.getElementById('box');
41 box
.style
.webkitTransform
= 'perspective(1000px) rotateX(90deg)';
44 runAnimationTest(expectedValues
);
49 <div class=
"box" id=
"box"></div>
50 <div class=
"box" id=
"box2"></div>
51 <div id=
"result"></div>