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/feDisplacementMap-colour-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<title>Testcase for feDisplacementMap processing in1 with linearRGB colours</title>
<defs>
<filter id="sponge">
<feTurbulence baseFrequency="0.1" type="fractalNoise" result="result1"/>
<feDisplacementMap id="feDisplacementMap" in2="result1" xChannelSelector="G" yChannelSelector="G" scale="50" in="SourceGraphic"/>
</filter>
</defs>
<!-- we can't use our usual lime here as that's the same colour in both colour spaces -->
<rect width="100%" height="100%" fill="#ea2"/>
<rect stroke="none" style="filter:url(#sponge)" x="50" y="50" width="100" height="100" fill="#ea2" />
</svg>