blob: ff0dfca431b4cc13aa3ae0051e569569a0816124 [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-linearGr-BE-03.svg -->
<!-- renamed for 1.1 suite to pservers-grad-10-b.svg -->
<!-- -->
<!-- Test that the viewer can handle the spreadMethod attribute on -->
<!-- linear gradients. -->
<!-- -->
<!-- Author : Haroon Sheikh 06-Mar-2000 -->
<!-- 1.1 revision by Rick Graham -->
<!-- -->
<!-- History: -->
<!-- 06-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 version="1.1" baseProfile="basic" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
<SVGTestCase xmlns="http://www.w3.org/2000/02/svg/testsuite/description/">
<OperatorScript version="$Revision: 1.7 $" testname="pservers-grad-10-b.svg">
<Paragraph>
Test that the viewer can handle the spreadMethod attribute on linear gradients.
</Paragraph>
<Paragraph>
From top-down the appearance of objects is as follows.
</Paragraph>
<Paragraph>
The first rectangle uses a spreadMethod=pad. The next uses a spreadMethod=reflect
and the third uses a spreadMethod=repeat.
</Paragraph>
<Paragraph>
The rendered picture should match the reference image exactly, except for possible
variations in the labelling text (per CSS2 rules).
</Paragraph>
</OperatorScript>
</SVGTestCase>
<title id="test-title">pservers-grad-10-b.svg</title>
<desc id="test-desc">Test that the viewer can handle the spreadMethod attribute on linear gradients.</desc>
<!--======================================================================-->
<!--Content of Test Case follows... =====================-->
<!--======================================================================-->
<g id="test-body-content">
<text font-family="Arial" font-size="15" x="10" y="25">Testing spreadMethod attribute</text>
<!-- ====================================================================== -->
<!-- Linear Gradient with spreadMethod=pad -->
<!-- ====================================================================== -->
<linearGradient id="Grad1" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="pad">
<stop stop-color="blue" offset="0"/>
<stop stop-color="red" offset="1"/>
</linearGradient>
<rect x="10" y="35" width="460" height="55" fill="url(#Grad1)" />
<text font-family="Arial" font-size="12" x="10" y="105">spreadMethod=pad</text>
<!-- ====================================================================== -->
<!-- Linear Gradient with spreadMethod=reflect -->
<!-- ====================================================================== -->
<linearGradient id="Grad2" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="reflect">
<stop stop-color="blue" offset="0"/>
<stop stop-color="red" offset="1"/>
</linearGradient>
<rect x="10" y="120" width="460" height="55" fill="url(#Grad2)" />
<text font-family="Arial" font-size="12" x="10" y="190">spreadMethod=reflect</text>
<!-- ====================================================================== -->
<!-- Linear Gradient with spreadMethod=repeat -->
<!-- ====================================================================== -->
<linearGradient id="Grad3" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="repeat">
<stop stop-color="blue" offset="0"/>
<stop stop-color="red" offset="1"/>
</linearGradient>
<rect x="10" y="205" width="460" height="55" fill="url(#Grad3)" />
<text font-family="Arial" font-size="12" x="10" y="275">spreadMethod=repeat</text>
</g>
<text id="revision" x="10" y="340" font-size="40" stroke="none" fill="black">$Revision: 1.7 $</text>
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
</svg>