blob: 9f2398004fa9d5447f2b9ccce64463fa537d8879 [file] [log] [blame]
<!DOCTYPE html>
<style type="text/css" media="screen">
#anim {
position: relative;
left: 0px;
height: 100px;
width: 100px;
-webkit-animation-name: anim;
-webkit-animation-duration: 1s;
-webkit-animation-timing-function: linear;
background: blue;
}
#fillanim {
position: relative;
left: 0px;
height: 100px;
width: 100px;
-webkit-animation-name: anim;
-webkit-animation-duration: 1s;
-webkit-animation-fill-mode: forwards;
-webkit-animation-timing-function: linear;
background: blue;
}
@-webkit-keyframes anim {
from { left: 200px; }
to { left: 300px; }
}
</style>
<script src="resources/animation-test-helpers.js"></script>
<script>
const expectedValues = [
// [animation-name, time, element-id, property, expected-value, tolerance]
[null, 1, "anim", "left", 0, 0],
[null, 1, "fillanim", "left", 300, 0],
];
runAnimationTest(expectedValues);
</script>
<div id="anim"></div>
<div id="fillanim"></div>