blob: aad4af38e2cebb85833953ddbe3a75c4672ccfae [file] [log] [blame]
<!DOCTYPE html><!-- webkit-test-runner [ experimental:WebAnimationsCSSIntegrationEnabled=false ] -->
<html>
<head>
<style>
#box {
position: relative;
height: 100px;
width: 100px;
margin: 20px;
background-color: red;
-webkit-animation:
horizontal 2s ease-in 1 alternate,
vertical 2s ease-out 1 alternate;
}
@-webkit-keyframes horizontal {
from { left: 0px; }
to { left: 200px; }
}
@-webkit-keyframes vertical {
from { top: 0px; }
to { top: 200px; }
}
</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]
["horizontal", 0.5, "box", "left", 18, 10],
["horizontal", 1.5, "box", "left", 124, 10],
["vertical", 0.5, "box", "top", 75, 10],
["vertical", 1.5, "box", "top", 181, 10],
];
runAnimationTest(expectedValues);
</script>
</head>
<body>
<div id="box"></div>
<div id="result"></div>
</body>
</html>