blob: e5ac58cbe670eab34fee788c57a0bf353d65fa0c [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.target {
display: inline-block;
font-size: 60pt;
}
.expected {
margin-right: 15px;
}
</style>
<body>
<template id="target-template">T</template>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'color',
from: 'black',
to: 'orange'
}, [
{at: -0.3, is: 'black'},
{at: 0, is: 'black'},
{at: 0.3, is: 'rgb(77, 50, 0)'},
{at: 0.6, is: 'rgb(153, 99, 0)'},
{at: 1, is: 'orange'},
{at: 1.5, is: 'rgb(255, 248, 0)'},
]);
</script>
</body>