blob: 9934c921c47af99e4f943e3ba744d76768532c4d [file] [log] [blame]
<!DOCTYPE html>
<html>
<head>
<style type="text/css" media="screen">
#container {
position: relative;
border: 1px solid black;
height: 100px;
width: 700px;
}
#box {
position: absolute;
height: 100px;
width: 100px;
background-color: blue;
animation-name: move;
animation-duration: 1.5s;
}
@keyframes move {
0% {
transform: translateX(0);
animation-timing-function: ease-out;
}
10% {
transform: translateX(100px);
animation-timing-function: linear;
}
90% {
transform: translateX(500px);
animation-timing-function: ease-in;
}
100% {
transform: translateX(600px);
}
}
</style>
<script src="../resources/animation-test-helpers.js" type="text/javascript" charset="utf-8"></script>
<script type="text/javascript" charset="utf-8">
const expectedValues = [
// [time, element-id, property, expected-value, tolerance]
[0.75, "box", "transform.4", 300, 20],
];
runAnimationTest(expectedValues);
</script>
</head>
<body>
Tests whether timing functions inside keyframes are respected.
<div id="container">
<div id="box"></div>
</div>
<div id="result">
</div>
</body>
</html>