1 <?xml version=
"1.0" encoding=
"UTF-8"?>
2 <!DOCTYPE svg PUBLIC
"-//W3C//DTD SVG 1.1 Basic//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11-basic.dtd">
4 <!--======================================================================-->
5 <!--= Copyright 2000 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, Institut National de Recherche en =-->
7 <!--= Informatique et en Automatique, Keio University). All Rights =-->
8 <!--= Reserved. See http://www.w3.org/Consortium/Legal/. =-->
9 <!--======================================================================-->
10 <!-- ===================================================================== -->
11 <!-- gradPatt-linearGr-BE-01.svg -->
12 <!-- renamed for 1.1 suite to pservers-grad-07-b.svg -->
13 <!-- Author : Haroon Sheikh 09-Feb-2000 -->
14 <!-- 1.1 revision by Rick Graham -->
15 <!--======================================================================-->
16 <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">
17 <SVGTestCase xmlns=
"http://www.w3.org/2000/02/svg/testsuite/description/">
18 <OperatorScript version=
"$Revision: 1.8 $" testname=
"pservers-grad-07-b.svg">
20 Test that the viewer has basic capability to handle linear gradients
21 on fills and stroke of objects and text.
24 This test uses the following elements :
<linearGradient
>,
<stop
>
25 and the following properties : stop-color, fill:url(# ), stroke(url# )
28 Both elements in this test use the same simple gradient. It is a linear gradient from
29 blue (left) to red (right). From top-down the appearance of objects is as follows.
32 The top rectangle should be filled with the gradient.
35 The next rectangle has no fill, but has a thick stroke on which the gradient is
39 The rendered picture should match the reference image, except for possible
40 variations in the labelling text (per CSS2 rules).
44 <title id=
"test-title">pservers-grad-
07-b.svg
</title>
45 <desc id=
"test-desc">Test that the viewer has basic capability to handle linear gradients on fills and stroke of objects
46 . This means it needs to understand the following elements :
<linearGradient
>,
<stop
> and the following
47 properties : stop-color, fill:url(# ), stroke(url# )
</desc>
48 <!--======================================================================-->
49 <!--Content of Test Case follows... =====================-->
50 <!--======================================================================-->
51 <g id=
"test-body-content" transform=
"scale(1, 1.5)">
52 <!-- ====================================================================== -->
53 <!-- Very simple blue to red linear gradient from left to right ========== -->
54 <!-- ====================================================================== -->
55 <linearGradient id=
"Gradient" gradientUnits=
"userSpaceOnUse" x1=
"10" y1=
"10" x2=
"440" y2=
"10">
56 <stop stop-color=
"blue" offset=
"0"/>
57 <stop stop-color=
"red" offset=
"1"/>
59 <!-- ====================================================================== -->
60 <!-- Linear gradient on the fill of a rectangle ======== -->
61 <!-- ====================================================================== -->
62 <rect x=
"10" y=
"10" width=
"430" height=
"60" fill=
"url(#Gradient)" />
63 <text font-family=
"Arial" font-size=
"24" x=
"10" y=
"90">Linear gradient filled rectangle
</text>
64 <!-- ====================================================================== -->
65 <!-- Linear gradient on the stroke of a rectangle ======== -->
66 <!-- ====================================================================== -->
67 <rect x=
"25" y=
"110" width=
"400" height=
"30" fill=
"none" stroke=
"url(#Gradient)" stroke-width=
"20" />
68 <text font-family=
"Arial" font-size=
"24" x=
"10" y=
"170">Linear gradient on stroke of rectangle
</text>
71 <text id=
"revision" x=
"10" y=
"340" font-size=
"40" stroke=
"none" fill=
"black">$Revision:
1.8 $
</text>
72 <rect id=
"test-frame" x=
"1" y=
"1" width=
"478" height=
"358" fill=
"none" stroke=
"#000000"/>