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/filter-result-01.svg
<!--
Any copyright is dedicated to the Public Domain.
-->
<svg xmlns="http://www.w3.org/2000/svg" class="reftest-wait">
<title>Testcase for filter result property</title>
<defs>
<filter id="f1">
<feGaussianBlur id="gb" in="SourceGraphic" stdDeviation="4"/>
<feColorMatrix values="1 0 0 0 0 0 0.333 0 0 0 0 0 1 0 0 0 0 0 1 0" in="blur"/>
</filter>
</defs>
<circle cx="100" cy="50" r="50" fill="yellow" filter="url('#f1')"/>
<script type="text/javascript">
document.addEventListener("MozReftestInvalidate", doTest, false);
setTimeout(doTest, 4000); // fallback for running outside reftest
function doTest() {
document.getElementById('gb').result.baseVal = 'blur';
document.documentElement.removeAttribute('class');
}
</script>
</svg>