Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / transition-and-animation-1.html
blobcd160fa3d79b7e9453285dd816a4713a71673451
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>Transition/Animation Test #1</title>
8 <style type="text/css" media="screen">
9 #box {
10 position: absolute;
11 left: 0;
12 top: 100px;
13 height: 100px;
14 width: 100px;
15 background-color: blue;
16 -webkit-animation-duration: 0.5s;
17 -webkit-animation-timing-function: linear;
18 -webkit-animation-name: anim;
19 -webkit-transition-property: -webkit-transform;
20 -webkit-transition-duration: 10s;
22 @-webkit-keyframes anim {
23 from { transform: translateX(200px); }
24 to { transform: translateX(300px); }
26 </style>
27 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
28 <script type="text/javascript" charset="utf-8">
30 const expectedValues = [
31 // [time, element-id, property, expected-value, tolerance]
32 [0.55, "box", "webkitTransform", "none", null],
35 runAnimationTest(expectedValues, undefined, undefined, 'do-not-use-pause-api');
37 </script>
38 </head>
39 <body>
40 This test has a transition and animation on the same property (-webkit-transform). But the transition is never triggered,
41 so nothing should be moving when the animation finishes.
42 <div id="box">
43 </div>
44 <div id="result">
45 </div>
46 </body>
47 </html>