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/feTurbulence-zero-baseFreq-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<!--
This test verifies that feTurbulence with baseFrequency="0" creates
a transparent black result for type="turbulence" and a 50% alpha
50% gray result for type="fractalNoise".
-->
<filter id="filterTurbulence" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
<feTurbulence type="turbulence" baseFrequency="0" numOctaves="1"
x="0%" y="0%" width="100%" height="100%"/>
</filter>
<filter id="filterFractalNoise" primitiveUnits="objectBoundingBox" color-interpolation-filters="sRGB">
<feTurbulence type="fractalNoise" baseFrequency="0" numOctaves="1"
x="0%" y="0%" width="100%" height="100%"/>
</filter>
<rect x="0" y="0" width="400" height="100" fill="blue"/>
<rect x="0" y="100" width="400" height="100" fill="lime"/>
<rect x="50" y="50" width="100" height="100" filter="url(#filterTurbulence)"/>
<rect x="200" y="50" width="100" height="100" filter="url(#filterFractalNoise)"/>
</svg>