Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/layout/reftests/svg/filters/feComponentTransfer-2.svg
<svg xmlns="http://www.w3.org/2000/svg" width="500" height="500">
<filter id="f1" filterUnits="userSpaceOnUse" primitiveUnits="userSpaceOnUse">
<feComponentTransfer
style="color-interpolation-filters:sRGB">
<feFuncR type="table" tableValues="1 0 0 1"/>
<feFuncG type="discrete" tableValues="0 1 0"/>
<feFuncB type="linear" slope="0.5" intercept="0.75"/>
<feFuncA type="identity"/>
</feComponentTransfer>
</filter>
<rect x="0" y="0" width="100" height="100" fill="#808080" filter="url(#f1)"/>
</svg>