Update To 11.40.268.0
[platform/framework/web/crosswalk.git] / src / third_party / WebKit / LayoutTests / animations / big-rotation.html
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
2 <html lang="en">
3 <head>
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">
7     #box {
8       //position: absolute;
9       height: 100px;
10       width: 100px;
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;
16     }
17     @-webkit-keyframes rotate {
18         from { transform: rotate(0); }
19         to   { transform: rotate(540deg); }
20     }
21   </style>
22   <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
23   <script type="text/javascript" charset="utf-8">
24     
25     const expectedValues = [
26       // [time, element-id, property, expected-value, tolerance]
27       [1, "box", "webkitTransform", [-1,0,0,-1], 0.2],
28       [2, "box", "webkitTransform", [1,0,0,1], 0.2],
29       [3, "box", "webkitTransform", [-1,0,0,-1], 0.2],
30     ];
31     
32     runAnimationTest(expectedValues);
33     
34   </script>
35 </head>
36 <body>
37 <p>
38 This test shows rotation of > 180 degrees. The box should make one and a half rotations.
39 <div id="box">
40 </div>
41 <div id="result">
42 </div>
43 </body>
44 </html>