Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / combo-transform-rotate+scale.html
blob96e7f1e6eb2f983d59ba811e276f7c7c97d9c172
1 <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
2 "http://www.w3.org/TR/html4/loose.dtd">
4 <html lang="en">
5 <head>
6 <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
7 <title>Combined transform rotate() scale()</title>
8 <style type="text/css" media="screen">
9 #box {
10 height: 100px;
11 width: 100px;
12 background-color: blue;
13 -webkit-animation-duration: 2s;
14 -webkit-animation-timing-function: linear;
15 -webkit-animation-name: anim;
17 @-webkit-keyframes anim {
18 from { transform: rotate(0) scale(1,1); }
19 to { transform: rotate(360deg) scale(2,4); }
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">
25 const expectedValues = [
26 // [time, element-id, property, expected-value, tolerance]
27 [0.5, "box", "webkitTransform", [0,1.25,-1.7,0,0,0], 0.2],
28 [1.0, "box", "webkitTransform", [-1.5,0,0,-2.5,0,0], 0.2],
31 runAnimationTest(expectedValues);
33 </script>
34 </head>
35 <body>
36 This test performs an animation of the rotate() and scale() operators. It animates over 2 seconds.
37 At 0.5 and 1 second it takes a snapshot and expects the result to be within range.
38 <div id="box">
39 </div>
40 <div id="result">
41 </div>
42 </body>
43 </html>