Debian Codegraph @

test_non_regression/svg/pservers-grad-10-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-10-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 the viewer can handle the spreadMethod attribute on linear gradients.
19 </p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>The test passes if the rendering matches the reference image, apart
28 from any differences in font choice due to CSS2 rules. Each of the
29 three rectangles is filled with a linear gradient from blue on the left
30 to lime on the right. The width of the gradient is only a fifth of
31 the width of the rectangle, so:</p>
32 <ul>
33 <li>The top rectangle is filled with plain blue in the left two-fifths
34 and with plain lime in the right two-fifths.</li>
35 <li>The middle rectangle is filled with alternating copies of the blue-to-lime
36 gradient. Thus, from left to right, the rectangle is filled with
37 a gradient that goes from blue to lime to blue to lime to blue to lime.</li>
38 <li>The bottom rectangle is filled with five copies of the blue-to-lime
39 gradient. Thus, from left to right, the rectangle is filled with
40 a gradient that goes from blue to lime, abruptly changing back to blue
41 then smoothly changing to lime, etc.</li>
42 </ul>
43 </d:passCriteria>
44 </d:SVGTestCase>
45 <title id="test-title">$RCSfile: pservers-grad-10-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 <text font-size="15" x="10" y="25">Testing spreadMethod attribute</text>
55 <!-- ====================================================================== -->
56 <!-- Linear Gradient with spreadMethod=pad -->
57 <!-- ====================================================================== -->
58 <linearGradient id="Grad1" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="pad">
59 <stop stop-color="blue" offset="0"/>
60 <stop stop-color="lime" offset="1"/>
61 </linearGradient>
62 <rect x="10" y="35" width="460" height="55" fill="url(#Grad1)"/>
63 <text font-size="12" x="10" y="105">spreadMethod=pad</text>
64 <!-- ====================================================================== -->
65 <!-- Linear Gradient with spreadMethod=reflect -->
66 <!-- ====================================================================== -->
67 <linearGradient id="Grad2" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="reflect">
68 <stop stop-color="blue" offset="0"/>
69 <stop stop-color="lime" offset="1"/>
70 </linearGradient>
71 <rect x="10" y="120" width="460" height="55" fill="url(#Grad2)"/>
72 <text font-size="12" x="10" y="190">spreadMethod=reflect</text>
73 <!-- ====================================================================== -->
74 <!-- Linear Gradient with spreadMethod=repeat -->
75 <!-- ====================================================================== -->
76 <linearGradient id="Grad3" gradientUnits="objectBoundingBox" x1=".4" y1="0" x2=".6" y2="0" spreadMethod="repeat">
77 <stop stop-color="blue" offset="0"/>
78 <stop stop-color="lime" offset="1"/>
79 </linearGradient>
80 <rect x="10" y="205" width="460" height="55" fill="url(#Grad3)"/>
81 <text font-size="12" x="10" y="275">spreadMethod=repeat</text>
82 </g>
83 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
84 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.8 $</text>
85 </g>
86 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
87 <!-- comment out this watermark once the test is approved -->
88 <!--<g id="draft-watermark">
89 <rect x="1" y="1" width="478" height="20" fill="lime" stroke="black" stroke-width="1"/>
90 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
91 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
92 </g>-->
93 </svg>