<!DOCTYPE html> | |
<html> | |
<body> | |
<template id="target-template"> | |
<svg width="90" height="90"> | |
<feComponentTransfer> | |
<feFuncR type="linear" class="target" /> | |
</feComponentTransfer> | |
</svg> | |
</template> | |
<script src="resources/interpolation-test.js"></script> | |
<script> | |
'use strict'; | |
assertAttributeInterpolation({ | |
property: 'intercept', | |
from: '-1', | |
to: '1.5' | |
}, [ | |
{at: -0.4, is: -2}, | |
{at: 0, is: -1}, | |
{at: 0.2, is: -0.5}, | |
{at: 0.6, is: 0.5}, | |
{at: 1, is: 1.5}, | |
{at: 1.4, is: 2.5} | |
]); | |
</script> | |
</body> | |
</html> |