Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

<!DOCTYPE html>
<title>CSS Filters: feMerge with no input feMergeNode</title>
<link rel="author" title="Fredrik Söderquist" href="mailto:fs@opera.com">
<link rel="match" href="reference/effect-reference-merge-no-inputs.tentative-ref.html">
<meta name="assert" content="Check that the result of an feMerge with no feMergeNode children is transparent black."/>
<style>
#target {
width: 100px;
height: 100px;
background-color: blue;
filter: url(#emptyMerge);
}
</style>
<div id="target"></div>
<svg height="0">
<filter id="emptyMerge">
<feColorMatrix values="0 0 0 0 0, 0 0 1 0 0, 0 0 0 0 0, 0 0 0 1 0" result="lime"/>
<feColorMatrix values="0 1 0 0 0, 0 0 0 0 0, 0 0 0 0 0, 0 0 0 1 0" result="red"/>
<feMerge/>
<feComposite in2="lime"/>
</filter>
</svg>