78 lines
5.0 KiB
XML
78 lines
5.0 KiB
XML
<?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-02-b.svg -->
|
|
<!-- -->
|
|
<!-- Test that the viewer can handle the xlink:href attribute on -->
|
|
<!-- linear, radial gradients and patterns. -->
|
|
<!-- -->
|
|
<!-- Author : Haroon Sheikh 08-Mar-2000 -->
|
|
<!-- & Philip Mansfield -->
|
|
<!-- Revised for 1.1 : Jun Fujisawa 19-Feb-2002 -->
|
|
<!-- -->
|
|
<!-- History: -->
|
|
<!-- 21-Aug-2000, PM=" fixed to validate against CR DTD, 20000802" ser#3 -->
|
|
<!-- 08-Mar-2000, HSS: Serial#1 created. -->
|
|
<!-- 03-Aug-2000, LH=" update DOCTYPE for CR DTD, 20000802" ser# . -->
|
|
<!-- 16-Aug-2000, LH="rename" ser#2. -->
|
|
<!-- -->
|
|
<!-- =====================================================================-->
|
|
<!--======================================================================-->
|
|
<!--= Note. After October 2000, revision history is kept as CVS 'commit' =-->
|
|
<!--= log messages, and therefore is no longer in the preceding preamble.=-->
|
|
<!--======================================================================-->
|
|
<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.8 $" testname="pservers-grad-02-b.svg">
|
|
<Paragraph>
|
|
Test that the viewer can handle the xlink:href attribute on
|
|
radial gradients.
|
|
</Paragraph>
|
|
<Paragraph>
|
|
There are two rectangles. The top one has
|
|
a radial gradient (black to orange) that should appear elliptical
|
|
to fit the aspect ratio of the rectangle. The units are
|
|
specified in objectBoundingBox space. The gradient
|
|
on the lower one
|
|
references the gradient of the top rectangle, but modifies
|
|
the units to use userSpace instead. So it is only using the
|
|
stops from the gradient to the left, with a different geometry. The radial gradient appears circular.
|
|
</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-02-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">
|
|
<!-- ====================================================================== -->
|
|
<!-- Radial Gradient using a xlink:href to another radial gradient -->
|
|
<!-- ====================================================================== -->
|
|
<radialGradient id="Grad2a" gradientUnits="objectBoundingBox" cx=".5" cy=".5" fx=".5" fy=".5" r=".5">
|
|
<stop stop-color="black" offset="0"/>
|
|
<stop stop-color="rgb(255,165,0)" offset="1"/>
|
|
</radialGradient>
|
|
<radialGradient id="Grad2b" xlink:href="#Grad2a" gradientUnits="userSpaceOnUse" cx="240" cy="190" fx="240" fy="190" r="40"/>
|
|
<rect x="20" y="20" width="440" height="80" fill="url(#Grad2a)" />
|
|
<text font-family="Arial" font-size="30" x="20" y="130">Radial gradient.</text>
|
|
<rect x="20" y="150" width="440" height="80" fill="url(#Grad2b)" />
|
|
<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.8 $</text>
|
|
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
|
|
</svg>
|