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