Rubber-stamped by Brady Eidson.
[webbrowser.git] / LayoutTests / animations / big-rotation.html
blobeaba2670b6a092baf22903288b2bc515331efd3d
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";
16 @-webkit-keyframes "rotate" {
17 from { -webkit-transform: rotate(0); }
18 to { -webkit-transform: rotate(540deg); }
20 </style>
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);
33 </script>
34 </head>
35 <body>
36 <p>
37 This test shows rotation of > 180 degrees. The box should make one and a half rotations.
38 <div id="box">
39 </div>
40 <div id="result">
41 </div>
42 </body>
43 </html>