Merge Chromium + Blink git repositories
[chromium-blink-merge.git] / third_party / WebKit / LayoutTests / animations / missing-values-last-keyframe.html
blobb1732e9757058b7ae2b0700b6d6ec2fad1d48fe8
1 <!DOCTYPE html>
2 <html>
3 <head>
4 <style type="text/css" media="screen">
5 body {
6 margin: 0;
9 .box {
10 position: relative;
11 width: 100px;
12 height: 100px;
13 left: 0;
14 background-color: green;
17 .indicator {
18 position: absolute;
19 width: 100px;
20 height: 100px;
21 left: 100px;
22 background-color: red;
24 #indicator1 {
25 top: 0;
27 #indicator2 {
28 top: 100px;
31 #box1 {
32 left: 200px;
33 -webkit-animation: move-left 2s linear;
36 #box2 {
37 transform: translateX(200px);
38 -webkit-animation: move-transform 2s linear;
41 @-webkit-keyframes move-left {
42 0% {
43 left: 0;
44 opacity: 0;
46 50% {
47 left: 0;
48 opacity: 1;
50 75% {
51 opacity: 1;
53 100% {
54 opacity: 1;
58 @-webkit-keyframes move-transform {
59 0% {
60 transform: translateX(0);
61 opacity: 0;
63 50% {
64 transform: translateX(0);
65 opacity: 1;
67 75% {
68 opacity: 1;
70 100% {
71 opacity: 1;
74 </style>
75 <script src="resources/animation-test-helpers.js" type="text/javascript"></script>
76 <script type="text/javascript">
78 const expectedValues = [
79 // [time, element-id, property, expected-value, tolerance]
80 [1.5, "box1", "left", 100, 15],
81 [1.5, "box2", "webkitTransform.4", 100, 15],
84 var doPixelTest = true;
85 var disablePauseAPI = false;
86 runAnimationTest(expectedValues, null, undefined, disablePauseAPI, doPixelTest);
87 </script>
88 </head>
89 <body>
90 <!-- In the pixel result, you should see two vertically adjacent green squares. There should be no red.
91 Test is only reliable when run in DRT. -->
92 <div class="indicator" id="indicator1"></div>
93 <div class="indicator" id="indicator2"></div>
95 <div class="box" id="box1"></div>
96 <div class="box" id="box2"></div>
98 <div id="result"></div>
99 </body>
100 </html>