blob: 6184d1a285f147f6147b316571ed53a37f0d0b90 [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=false ] -->
<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>