blob: 289cf9f9487af9a3e736da6a69888fc46e6446df [file] [log] [blame]
<!DOCTYPE html>
<meta charset="UTF-8">
<style>
.target {
width: 60px;
height: 60px;
display: inline-block;
border: 2px solid black;
margin-right: 2px;
}
.replica {
background-color: green;
margin-right: 15px;
}
</style>
<body>
<script src="../testharness/testharness.js"></script>
<script src="../testharness/testharnessreport.js"></script>
<script src="resources/interpolation-test.js"></script>
<script>
assertInterpolation({
property: 'background-color',
from: 'white',
to: 'orange'
}, [
{at: -0.3, is: 'white'},
{at: 0, is: 'white'},
{at: 0.3, is: 'rgb(255, 228, 179)'},
{at: 0.6, is: 'rgb(255, 201, 102)'},
{at: 1, is: 'orange'},
{at: 1.5, is: 'rgb(255, 120, 0)'},
]);
assertInterpolation({
property: 'background-color',
from: 'initial',
to: 'transparent'
}, [
{at: -0.3, is: 'transparent'},
{at: 0, is: 'transparent'},
{at: 0.3, is: 'transparent'},
{at: 0.6, is: 'transparent'},
{at: 1, is: 'transparent'},
{at: 1.5, is: 'transparent'},
]);
</script>
</body>