summaryrefslogtreecommitdiffstats
path: root/tests/arthur/data/1.1/pservers-grad-07-b.svg
blob: 00f295779ec1fb1566c48e67bc426c9ed6217bde (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
<?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-01.svg                                          -->
<!-- renamed for 1.1 suite to pservers-grad-07-b.svg                                -->
<!-- Author : Haroon Sheikh  09-Feb-2000                                   -->
<!--          1.1 revision by Rick Graham                                  -->
<!--======================================================================-->
<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-05-b-a.svg">
			<Paragraph>
				Test that the viewer has basic capability to handle linear gradients
				on fills and stroke of objects and text. 
			</Paragraph>
			<Paragraph>
				This test uses the following elements : &lt;linearGradient&gt;, &lt;stop&gt;
				and the following properties : stop-color, fill:url(#  ), stroke(url# )
			</Paragraph>
			<Paragraph>
				Both elements in this test use the same simple gradient. It is a linear gradient from 
				blue (left) to red (right). From top-down the appearance of objects is as follows.
			</Paragraph>
			<Paragraph>
				The top rectangle should be filled with the gradient.
			</Paragraph>
			<Paragraph>
				The next rectangle has no fill, but has a thick stroke on which the gradient is 
				applied.
			</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-07-b.svg</title>
	<desc id="test-desc">Test that the viewer has basic capability to handle linear gradients on fills and stroke of objects
	. This means it needs to understand the following elements : &lt;linearGradient&gt;, &lt;stop&gt; and the following 
	properties : stop-color, fill:url(# ), stroke(url# )</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content" transform="scale(1, 1.5)">
		<!-- ====================================================================== -->
		<!-- Very simple blue to red linear gradient from left to right  ========== -->
		<!-- ====================================================================== -->
		<linearGradient id="Gradient" gradientUnits="userSpaceOnUse" x1="10" y1="10" x2="440" y2="10">
			<stop stop-color="blue"  offset="0"/>
			<stop stop-color="red"  offset="1"/>
		</linearGradient>
		<!-- ====================================================================== -->
		<!-- Linear gradient on the fill of a rectangle                    ======== -->
		<!-- ====================================================================== -->
		<rect x="10" y="10" width="430" height="60" fill="url(#Gradient)" />
		<text font-family="Arial" font-size="24"  x="10" y="90">Linear gradient filled rectangle</text>
		<!-- ====================================================================== -->
		<!-- Linear gradient on the stroke of a rectangle                  ======== -->
		<!-- ====================================================================== -->
		<rect x="25" y="110" width="400" height="30" fill="none" stroke="url(#Gradient)" stroke-width="20" />
		<text font-family="Arial" font-size="24"  x="10" y="170">Linear gradient on stroke of rectangle</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>