Debian Codegraph @

test_non_regression/svg/pservers-grad-04-b.svg

raw
1 <svg version="1.1" baseProfile="basic" id="svg-root"
2 width="100%" height="100%" viewBox="0 0 480 360"
3 xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =-->
8 <!--= Institute of Technology, European Research Consortium for =-->
9 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
10 <!--= All Rights Reserved. =-->
11 <!--= See http://www.w3.org/Consortium/Legal/. =-->
12 <!--======================================================================-->
13 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
14 template-version="1.4" reviewer="SVGWG" author="Haroon Sheikh" status="accepted"
15 version="$Revision: 1.8 $" testname="$RCSfile: pservers-grad-04-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
17 <p>
18 Test that checks the capability of the stop element in linear and radial
19 gradients.
20 </p>
21 <p>
22 The first rectangle has a linear gradient fill with a vector starting at top left
23 and going to bottom right. The stop colors are at 20% spacing apart and are in the
24 following order : violet, blue, lime, yellow, orange, green.
25 Because the gradient vector vector goes from (0,0) to (1,1) in object bounding box space
26 and because the object bounding box has a larger width than height, the gradient vector
27 is skewed off of a pure 45 degree angle. The gradient stripes are also skewed
28 so that they are no longer perpendicular to the gradient vector.
29 </p>
30 <p>
31 The next rectangle has a radial gradient fill with a multi-color stops from innermost
32 to outermost in the following order: black, yellow, orange, blue, white, green.
33 </p>
34 </d:testDescription>
35 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
36 <p>
37 Run the test. No interaction required.
38 </p>
39 </d:operatorScript>
40 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
41 <p>The test passes if the rendering matches the reference image, except for
42 any differences in text due to CSS2 rules.</p>
43 </d:passCriteria>
44 </d:SVGTestCase>
45 <title id="test-title">$RCSfile: pservers-grad-04-b.svg,v $</title>
46 <defs>
47 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
48 <font-face-src>
49 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
50 </font-face-src>
51 </font-face>
52 </defs>
53 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
54 <linearGradient id="Grad1" gradientUnits="objectBoundingBox" x1="0" y1="0" x2="1" y2="1">
55 <stop stop-color="rgb(238,130,238)" offset="0"/>
56 <stop stop-color="blue" offset="0.2"/>
57 <stop stop-color="lime" offset="0.4"/>
58 <stop stop-color="yellow" offset="0.6"/>
59 <stop stop-color="rgb(255,165,0)" offset="0.8"/>
60 <stop stop-color="green" offset="1"/>
61 </linearGradient>
62 <rect x="20" y="20" width="440" height="80" fill="url(#Grad1)"/>
63 <text font-size="30" x="20" y="130">Multi-color linear gradient.</text>
64 <!-- ====================================================================== -->
65 <!-- Radial gradient on the stroke of a rectangle ======== -->
66 <!-- ====================================================================== -->
67 <radialGradient id="Grad2" gradientUnits="userSpaceOnUse" cx="240" cy="210" r="220" fx="240" fy="210">
68 <stop stop-color="black" offset="0"/>
69 <stop stop-color="yellow" offset="0.2"/>
70 <stop stop-color="orange" offset="0.4"/>
71 <stop stop-color="blue" offset="0.6"/>
72 <stop stop-color="white" offset="0.8"/>
73 <stop stop-color="green" offset="1"/>
74 </radialGradient>
75 <rect x="20" y="150" width="440" height="80" fill="url(#Grad2)" stroke-width="40"/>
76 <text font-size="30" x="20" y="260">Multi-color radial gradient.</text>
77 </g>
78 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
79 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
80 </g>
81 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
82 <!-- comment out this watermark once the test is approved -->
83 <!--<g id="draft-watermark">
84 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
85 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
86 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
87 </g>-->
88 </svg>