blob: 5dc83d47decb802f92d01f2e5aa87d6a7e19ec82 [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
#box1 {
position: relative;
height: 100px;
width: 100px;
left: 0;
background-color: blue;
margin: 0;
-webkit-animation-duration: 2s;
-webkit-animation-timing-function: linear;
-webkit-animation-iteration-count: 2;
-webkit-animation-direction: alternate;
-webkit-animation-name: move;
}
@-webkit-keyframes move {
from {
opacity: 1;
}
50% {
opacity: 1;
left: 100px;
}
to {
opacity: 1;
}
}
/* Test reversing animation with missing values */
</style>
<script src="resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [animation-name, time, element-id, property, expected-value, tolerance]
["move", 1, "box1", "left", 100, 15],
["move", 2, "box1", "left", 0, 15],
["move", 3, "box1", "left", 100, 15],
];
runAnimationTest(expectedValues);
</script>
</head>
<body>
<div id="box1"></div>
<div id="result">
</div>
</body>
</html>