1 <!DOCTYPE html PUBLIC
"-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
4 <meta http-equiv=
"Content-Type" content=
"text/html; charset=utf-8">
5 <title>Testing Rotations
> 180 degrees
</title>
6 <style type=
"text/css" media=
"screen">
11 background-color: blue;
12 -webkit-animation-duration:
3s;
13 -webkit-animation-timing-function: linear;
14 -webkit-animation-name: rotate;
15 -webkit-animation-fill-mode: forwards;
17 @-webkit-keyframes rotate {
18 from { transform: rotate(
0); }
19 to { transform: rotate(
540deg); }
22 <script src=
"resources/animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
23 <script type=
"text/javascript" charset=
"utf-8">
25 const expectedValues = [
26 // [time, element-id, property, expected-value, tolerance]
27 [
1,
"box",
"webkitTransform", [-
1,
0,
0,-
1,
0,
0],
0.2],
28 [
2,
"box",
"webkitTransform", [
1,
0,
0,
1,
0,
0],
0.2],
29 [
3,
"box",
"webkitTransform", [-
1,
0,
0,-
1,
0,
0],
0.2],
32 runAnimationTest(expectedValues);
38 This test shows rotation of
> 180 degrees. The box should make one and a half rotations.