blob: e7f3963859fb8b07cd0e8b284d0826f83ce2965c [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 "spreadMethod" is invalid on &lt;linearGradient></title>
<!-- ============================================================= -->
<!-- Batik sample mark -->
<!-- ============================================================= -->
<use xlink:href="./batikMark.svg#BatikTag" />
<!-- ============================================================= -->
<!-- Test content -->
<!-- ============================================================= -->
<g id="testContent">
<text x="225" y="40" class="title">
Error: attribute "spreadMethod" is invalid
</text>
<text x="225" y="60" class="title">
on &lt;linearGradient>
</text>
<defs>
<linearGradient id="good" x1="0%" y1="0%" x2="50%" y2="0%" spreadMethod="repeat">
<stop offset="0%" style="stop-color:yellow"/>
<stop offset="100%" style="stop-color:green"/>
</linearGradient>
<linearGradient id="bad" x1="0%" y1="0%" x2="50%" y2="0%" spreadMethod="repeatX">
<stop offset="0%" style="stop-color:yellow"/>
<stop offset="100%" style="stop-color:green"/>
</linearGradient>
</defs>
<text x="225" y="240" class="legend">A &lt;linearGradient></text>
<text x="225" y="440" class="legend">A &lt;linearGradient> with an invalid "spreadMethod"</text>
<rect x="70" y="120" width="300" height="100" style="fill:url(#good)"/>
<rect x="70" y="280" width="300" height="100" style="fill:url(#bad)"/>
</g>
</svg>