Debian Codegraph @

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

raw
1 <svg id="svg-root" width="100%" height="100%"
2 viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg"
3 xmlns:xlink="http://www.w3.org/1999/xlink">
4 <!--======================================================================-->
5 <!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =-->
6 <!--= Institute of Technology, European Research Consortium for =-->
7 <!--= Informatics and Mathematics (ERCIM), Keio University). =-->
8 <!--= All Rights Reserved. =-->
9 <!--= See http://www.w3.org/Consortium/Legal/. =-->
10 <!--======================================================================-->
11 <d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/"
12 template-version="1.4" reviewer="AG" author="ED" status="accepted"
13 version="$Revision: 1.4 $" testname="$RCSfile: pservers-grad-21-b.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/pservers.html#Gradients">
15 <p>
16 Test the inheritance of radial gradient attributes. The test has six ellipses with blue stroke, each filled
17 with two gradients.
18 </p>
19 </d:testDescription>
20 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
21 <p>
22 Run the test. No interaction required.
23 </p>
24 </d:operatorScript>
25 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 The test has passed if:
28 </p>
29 <ul>
30 <li>the gradient fills don't extend outside the blue ellipses</li>
31 <li>the gradient fills in the left column exactly match the corresponding reference gradient fills in the right column</li>
32 </ul>
33 </d:passCriteria>
34 </d:SVGTestCase>
35 <title id="test-title">$RCSfile: pservers-grad-21-b.svg,v $</title>
36 <defs>
37 <font-face
38 font-family="SVGFreeSansASCII"
39 unicode-range="U+0-7F">
40 <font-face-src>
41 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
42 </font-face-src>
43 </font-face>
44 </defs>
45 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
46 <defs>
47 <radialGradient id="grad1" cx="100%" r="20%">
48 <stop offset="0" stop-color="black" />
49 <stop offset="1" stop-opacity="0"/>
50 </radialGradient>
51 <radialGradient id="grad2" xlink:href="#grad1" cx="0%"/>
52 <radialGradient id="grad3" cx="100%" r="20%" fx="0%">
53 <stop offset="0" stop-color="black" />
54 <stop offset="1" stop-opacity="0"/>
55 </radialGradient>
56 <radialGradient id="grad4" xlink:href="#grad3" cx="0%"/>
57 <radialGradient id="grad5" cx="100%" r="20%" fx="25%">
58 <stop offset="0" stop-color="black" />
59 <stop offset="1" stop-opacity="0"/>
60 </radialGradient>
61 <radialGradient id="grad6" xlink:href="#grad5" cx="0%"/>
62
63 <radialGradient id="grad1-ref" cx="100%" r="20%">
64 <stop offset="0" stop-color="black" />
65 <stop offset="1" stop-opacity="0"/>
66 </radialGradient>
67 <radialGradient id="grad2-ref" cx="0%" r="20%">
68 <stop offset="0" stop-color="black" />
69 <stop offset="1" stop-opacity="0"/>
70 </radialGradient>
71 <radialGradient id="grad3-ref" cx="100%" r="20%" fx="0%">
72 <stop offset="0" stop-color="black" />
73 <stop offset="1" stop-opacity="0"/>
74 </radialGradient>
75 <radialGradient id="grad4-ref" cx="0%" r="20%" fx="0%">
76 <stop offset="0" stop-color="black" />
77 <stop offset="1" stop-opacity="0"/>
78 </radialGradient>
79 <radialGradient id="grad5-ref" cx="100%" r="20%" fx="25%">
80 <stop offset="0" stop-color="black" />
81 <stop offset="1" stop-opacity="0"/>
82 </radialGradient>
83 <radialGradient id="grad6-ref" cx="0%" r="20%" fx="25%">
84 <stop offset="0" stop-color="black" />
85 <stop offset="1" stop-opacity="0"/>
86 </radialGradient>
87 </defs>
88
89 <g transform="translate(100 60)">
90 <!-- first line of tests -->
91 <rect fill="url(#grad1)" x="-60" width="120" height="90"/>
92 <rect fill="url(#grad2)" x="60" width="120" height="90"/>
93 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
94
95 <!-- reference for first line -->
96 <g transform="translate(100 0)">
97 <rect fill="url(#grad1-ref)" x="-60" width="120" height="90"/>
98 <rect fill="url(#grad2-ref)" x="60" width="120" height="90"/>
99 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
100 </g>
101
102 <!-- second line of tests -->
103 <g transform="translate(0 50)">
104 <rect fill="url(#grad3)" x="-60" width="120" height="90"/>
105 <rect fill="url(#grad4)" x="60" width="120" height="90"/>
106 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
107 </g>
108
109 <!-- reference for second line -->
110 <g transform="translate(100 50)">
111 <rect fill="url(#grad3-ref)" x="-60" width="120" height="90"/>
112 <rect fill="url(#grad4-ref)" x="60" width="120" height="90"/>
113 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
114 </g>
115
116 <!-- third line of tests -->
117 <g transform="translate(0 100)">
118 <rect fill="url(#grad5)" x="-60" width="120" height="90"/>
119 <rect fill="url(#grad6)" x="60" width="120" height="90"/>
120 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
121 </g>
122
123 <!-- reference for third line -->
124 <g transform="translate(100 100)">
125 <rect fill="url(#grad5-ref)" x="-60" width="120" height="90"/>
126 <rect fill="url(#grad6-ref)" x="60" width="120" height="90"/>
127 <ellipse cx="60" cy="45" rx="24" ry="18" fill="none" stroke="blue"/>
128 </g>
129
130 <rect x="120" y="20" width="80" height="200" fill="none" stroke="green"/>
131 <text y="200" x="160" text-anchor="middle" font-size="12">Reference</text>
132 </g>
133
134 </g>
135 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
136 <text id="revision" x="10" y="340" stroke="none"
137 fill="black">$Revision: 1.4 $</text>
138 </g>
139 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
140 <!-- comment out this watermark once the test is approved
141 <g id="draft-watermark">
142 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
143 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
144 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
145 </g>-->
146 </svg>