blob: 4fa2bd7149303bcccea9cd97748a77883aa4520f [file] [log] [blame]
<?xml version="1.0" standalone="no"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 20000802//EN"
"http://www.w3.org/TR/2000/CR-SVG-20000802/DTD/svg-20000802.dtd">
<!-- ========================================================================= -->
<!-- Copyright (C) The Apache Software Foundation. All rights reserved. -->
<!-- -->
<!-- This software is published under the terms of the Apache Software License -->
<!-- version 1.1, a copy of which has been included with this distribution in -->
<!-- the LICENSE file. -->
<!-- ========================================================================= -->
<!-- ========================================================================= -->
<!-- Error on rect -->
<!-- -->
<!-- @author tkormann@apache.org -->
<!-- @version $Id$ -->
<!-- ========================================================================= -->
<?xml-stylesheet type="text/css" href="test.css" ?>
<svg id="body" width="450" height="500" viewBox="0 0 450 500">
<title>Error: attribute "operator" on &lt;feComposite> is invalid</title>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="./batikMark.svg#BatikTag" />
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="40" class="title">
Error: attribute "operator" on &lt;feComposite> is invalid
</text>
<defs>
<circle id="Circle1" cx="40" cy="60" r="30" style="fill:orange" />
<circle id="Circle2" cx="80" cy="60" r="30" style="fill:blue" />
<filter id="feImage1" x="0" y="0" width="1" height="1">
<feImage xlink:href="#Circle1"/>
</filter>
<filter id="feImage2" x="0" y="0" width="1" height="1">
<feImage xlink:href="#Circle2"/>
</filter>
<filter id="good" x="0" y="0" width="1" height="1">
<feImage xlink:href="#Circle1" result="c1" />
<feImage xlink:href="#Circle2" result="c2" />
<feComposite in="c1" in2="c2" operator="over" />
</filter>
<filter id="bad" x="0" y="0" width="1" height="1">
<feImage xlink:href="#Circle1" result="c1" />
<feImage xlink:href="#Circle2" result="c2" />
<feComposite in="c1" in2="c2" operator="overX" />
</filter>
</defs>
<text x="225" y="240" class="legend">A filtered rectangle using &lt;feComposite></text>
<text x="225" y="440" class="legend">
A filtered rectangle using &lt;feComposite>.
</text>
<text x="225" y="454" class="legend">
The attribute "operator" of &lt;feComposite> is invalid
</text>
<rect x="165" y="100" width="120" height="100" style="filter:url(#good)"/>
<rect x="165" y="300" width="120" height="100" style="filter:url(#bad)"/>
</g>
</svg>