blob: fbcb1026fc99db8d605ad807b3ae455fa12f88e2 [file] [log] [blame]
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
<!--======================================================================-->
<!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
<!--= Institute of Technology, Institut National de Recherche en =-->
<!--= Informatique et en Automatique, Keio University). All Rights =-->
<!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
<!--======================================================================-->
<!-- =====================================================================-->
<!-- -->
<!-- gradPatt-referenc-BE-08.svg -->
<!-- renamed for 1.1 suite to pservers-grad-01-b.svg -->
<!-- Author : Haroon Sheikh 08-Mar-2000 -->
<!-- & Philip Mansfield -->
<!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 -->
<!--======================================================================-->
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" viewBox="0 0 480 360" width="100%" height="100%" version="1.1" baseProfile="basic">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.5 $" testname="pservers-grad-01-b.svg">
<Paragraph>
Test that the viewer can handle the xlink:href attribute on
linear gradients.
</Paragraph>
<Paragraph>
There are two rectangles. The top one has a simple
blue (left) to red (right) linear gradient. The lower one
has a different gradient definition, but
should look the same as the one above, because the gradient makes a
reference to the first gradient, without modifying any attribute.
</Paragraph>
<Paragraph>
The rendered picture should match the reference image, except
for possible variations in the labelling text (per CSS2 rules).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">pservers-grad-01-b</title>
<desc id="test-desc">Test that the viewer can handle the xlink:href attribute on linear, radial gradients and patterns.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<!-- ====================================================================== -->
<!-- Linear Gradient using a xlink:href to another linear gradient -->
<!-- ====================================================================== -->
<linearGradient id="Grad1a" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="0">
<stop stop-color="blue" offset="0"/>
<stop stop-color="red" offset="1"/>
</linearGradient>
<linearGradient id="Grad1b" xlink:href="#Grad1a"/>
<rect x="20" y="20" width="440" height="80" fill="url(#Grad1a)" />
<text font-family="Arial" font-size="30" x="20" y="130">Linear gradient.</text>
<rect x="20" y="150" width="440" height="80" fill="url(#Grad1b)" />
<text font-family="Arial" font-size="30" x="20" y="260">Referencing gradient below.</text>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.5 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>