Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / missing-keyframe-properties.html
blobd392b65f21371ad40b1ddf13825f10c24ec15d68
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css" media="screen">
5 .box {
6 position: relative;
7 margin: 10px;
8 left: 0;
9 width: 100px;
10 height: 100px;
11 background-color: blue;
12 -webkit-animation-duration: 2s;
13 -webkit-animation-timing-function: linear;
16 #box1 {
17 -webkit-animation-name: move;
19 @-webkit-keyframes move {
20 from {
21 left: 0px;
23 50% {
24 opacity: 0;
26 to {
27 left: 400px;
31 #box2 {
32 -webkit-animation-name: move2;
34 @-webkit-keyframes move2 {
35 from {
36 transform: translateX(0);
38 50% {
39 opacity: 0;
41 to {
42 transform: translateX(400px);
46 </style>
47 <script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
48 <script type="text/javascript" charset="utf-8">
50 const expectedValues = [
51 // [time, element-id, property, expected-value, tolerance]
52 [1, "box1", "left", 200, 15],
53 [1, "box2", "webkitTransform.4", 200, 15],
54 [0.5, "box1", "opacity", 0.5, 0.1],
55 [1, "box1", "opacity", 0, 0.1],
56 [1.5, "box1", "left", 300, 15],
57 [1.5, "box2", "webkitTransform.4", 300, 15],
58 [1.5, "box1", "opacity", 0.5, 0.1],
61 runAnimationTest(expectedValues);
62 </script>
63 </head>
64 <body>
65 <div id="box1" class="box"></div>
66 <div id="box2" class="box"></div>
67 <div id="result">
68 </div>
69 </body>
70 </html>