blob: faa1a259b20669075027fdbd3491fda00268e3cb [file] [log] [blame]
<!DOCTYPE html>
<html>
<body>
<template id="target-template">
<svg width="90" height="90">
<defs>
<filter>
<feBlend mode="normal" class="target" />
</filter>
</defs>
</svg>
</template>
<script src="resources/interpolation-test.js"></script>
<script>
'use strict';
assertAttributeInterpolation({
property: 'in',
from: 'SourceAlpha',
to: 'FillPaint'
}, [
{at: -0.4, is: 'SourceAlpha'},
{at: 0, is: 'SourceAlpha'},
{at: 0.2, is: 'SourceAlpha'},
{at: 0.6, is: 'FillPaint'},
{at: 1, is: 'FillPaint'},
{at: 1.4, is: 'FillPaint'}
]);
assertAttributeInterpolation({
property: 'in2',
from: 'BackgroundImage',
to: 'myFilter' // arbitrary <filter-primitive-reference>
}, [
{at: -0.4, is: 'BackgroundImage'},
{at: 0, is: 'BackgroundImage'},
{at: 0.2, is: 'BackgroundImage'},
{at: 0.6, is: 'myFilter'},
{at: 1, is: 'myFilter'},
{at: 1.4, is: 'myFilter'}
]);
</script>
</body>
</html>