Initialize Tizen 2.3
[framework/web/webkit-efl.git] / LayoutTests / animations / animation-offscreen-to-onscreen.html
1 <html>
2 <head>
3   <style type="text/css" media="screen">
4     body {
5       margin: 0;
6     }
7
8     #box {
9       position: absolute;
10       left: 0px;
11       top: 100px;
12       height: 100px;
13       width: 100px;
14       margin: 0;
15       background-color: red;
16       -webkit-transform: translate(-2000px, 0px);
17       -webkit-animation-duration: 1s;
18       -webkit-animation-direction: normal;
19       -webkit-animation-timing-function: linear;
20       -webkit-animation-name: "anim";
21     }
22     @-webkit-keyframes "anim" {
23         0% { -webkit-transform: translate(100px, 0px); }
24       100% { -webkit-transform: translate(100px, 0px); }
25     }
26     #result {
27       color: white; /* hide from pixel results */
28     }
29   </style>
30   <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
31   <script type="text/javascript" charset="utf-8">
32     if (window.testRunner) {
33         window.testRunner.dumpAsText(true);
34     }
35
36     const expectedValues = [
37       // [time, element-id, property, expected-value, tolerance]
38       ["anim",  0.5, "box", "webkitTransform", [1, 0, 0, 1, 100, 0], 0.002],
39     ];
40
41     const doPixelTest = true;
42     const disablePauseAnimationAPI = false;
43     runAnimationTest(expectedValues, null, null, disablePauseAnimationAPI, doPixelTest);
44   </script>
45 </head>
46 <body>
47
48 <!-- This test checks that a compositing layer is rendered if the layer is originally transformed off the viewport. You should see red boxes. -->
49 <div id="box"></div>
50 <div id="result"></div>
51
52 </body>
53 </html>