[WK2] selection does not disappear after coping the text
[framework/web/webkit-efl.git] / LayoutTests / animations / play-state-paused.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>Test of -webkit-animation-play-state</title>
6   <style type="text/css" media="screen">
7     body {
8       margin: 0;
9     }
10
11     #box {
12       position: absolute;
13       left: 0px;
14       top: 100px;
15       height: 100px;
16       width: 100px;
17       background-color: red;
18       margin: 0;
19       -webkit-animation-duration: 2s;
20       -webkit-animation-timing-function: linear;
21       -webkit-animation-name: "move1";
22       -webkit-animation-play-state: running;
23     }
24     #safezone {
25       position: absolute;
26       top: 100px;
27       height: 100px;
28       width: 200px;
29       left: 100px;
30       background-color: green;
31     }
32     @-webkit-keyframes "move1" {
33       from { -webkit-transform: translateX(0px); }
34       to   { -webkit-transform: translateX(300px); }
35     }
36     #result {
37       color: white; /* hide from pixel results */
38     }
39   </style>
40   <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
41   <script type="text/javascript" charset="utf-8">
42     const expectedValues = [
43       // [animation-name, time, element-id, property, expected-value, tolerance]
44       ["move1", 0.5, "box", "webkitTransform", [1,0,0,1,75,0], 20],
45       ["move1", 1.0, "box", "webkitTransform", [1,0,0,1,150,0], 20],
46       ["move1", 2.5, "box", "webkitTransform", [1,0,0,1,150,0], 20],
47     ];
48
49     function pauseAnimation()
50     {
51         document.getElementById("box").style.webkitAnimationPlayState = "paused";
52     }
53
54     function setTimers()
55     {
56         setTimeout(pauseAnimation, 1000);
57     }
58
59     runAnimationTest(expectedValues, setTimers, null, true);
60
61   </script>
62 </head>
63 <body>
64 <!-- This tests the operation of -webkit-animation-play-state. After 1 second the red boxes should be hidden by the green boxes. You should see no red boxes. -->
65 <div id="box"></div>
66 <div id="safezone"></div>
67 <div id="result"></div>
68 </div>
69 </body>
70 </html>