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";
16 @-webkit-keyframes
"rotate" {
17 from { -webkit-transform: rotate(
0); }
18 to { -webkit-transform: rotate(
540deg); }
21 <script src=
"animation-test-helpers.js" type=
"text/javascript" charset=
"utf-8"></script>
22 <script type=
"text/javascript" charset=
"utf-8">
24 const expectedValues = [
25 // [animation-name, time, element-id, property, expected-value, tolerance]
26 [
"rotate",
1,
"box",
"webkitTransform", [-
1,
0,
0,-
1],
0.2],
27 [
"rotate",
2,
"box",
"webkitTransform", [
1,
0,
0,
1],
0.2],
28 [
"rotate",
3,
"box",
"webkitTransform", [-
1,
0,
0,-
1],
0.2],
31 runAnimationTest(expectedValues);
37 This test shows rotation of
> 180 degrees. The box should make one and a half rotations.