Debian Codegraph @

test_non_regression/fail/filter/filters-overview-03-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="CL" author="BB" status="created"
15 version="$Revision: 1.2 $" testname="$RCSfile: filters-overview-03-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#FilterPrimitivesOverview">
17 <!-- XXX make a more extensive test of FillPaint/StrokePaint in this test -->
18 <p>The purpose of this file is to test the 'in' attribute on filter primitives.</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 To pass this test, the UA must render all 6 cases (SourceGraphic, SourceAlpha, BackgroundImage, BackgroundAlpha, FillPaint, StrokePaint) correctly.
28 </p>
29 <ol>
30 <li>The result for in="SourceGraphic" is a non blurred vertical rectangle (green with dashed stroke) overlayed with three blurred circles (red/green/blue with dashed stroke).</li>
31 <li>The result for in="SourceAlpha" is a non blurred vertical rectangle (green with dashed stroke) overlayed with three blurred circles (dark gray with dashed stroke).</li>
32 <li>The result for in="BackgroundImage" is a blurred vertical rectangle (green with dashed stroke).</li>
33 <li>The result for in="BackgroundAlpha" is blurred vertical rectangle (dark gray with dashed stroke).</li>
34 <li>The results for in="FillPaint" and in="StrokePaint" are the same. They consists of a non blurred vertical rectangle (green with dashed stroke) overlayed with a blurred gradiant (blue/white/red/yellow).</li>
35 <li>The size of the gradients are bigger than the blurred circles.</li>
36 </ol>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: filters-overview-03-b.svg,v $</title>
40 <defs>
41 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
42 <font-face-src>
43 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
44 </font-face-src>
45 </font-face>
46 </defs>
47 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
48 <defs>
49 <linearGradient id="grad1" gradientUnits="objectBoundingBox" x1="50%" y1="-3%" x2="50%" y2="106%">
50 <stop offset="0.00" stop-color="#0000ff"/>
51 <stop offset="0.33" stop-color="#ffffff"/>
52 <stop offset="0.67" stop-color="#ff0000"/>
53 <stop offset="1.00" stop-color="#ffff00"/>
54 </linearGradient>
55
56 <filter id="GaussianBlur1" filterUnits="objectBoundingBox" x="-20%" y="-20%" width="140%" height="140%">
57 <feGaussianBlur in="SourceAlpha" stdDeviation="2"/>
58 </filter>
59
60 <filter id="GaussianBlur2" filterUnits="objectBoundingBox" x="-20%" y="-20%" width="140%" height="140%">
61 <feGaussianBlur in="SourceGraphic" stdDeviation="2"/>
62 </filter>
63
64 <filter id="GaussianBlur3" filterUnits="objectBoundingBox" x="-30%" y="-30%" width="160%" height="160%">
65 <feFlood flood-color="white" result="flood"/>
66 <feGaussianBlur in="BackgroundAlpha" stdDeviation="2" result="blur"/>
67 <feMerge>
68 <feMergeNode in="flood"/>
69 <feMergeNode in="blur"/>
70 </feMerge>
71 </filter>
72
73 <filter id="GaussianBlur4" filterUnits="objectBoundingBox" x="-40%" y="-40%" width="180%" height="180%">
74 <feFlood flood-color="white" result="flood"/>
75 <feGaussianBlur in="BackgroundImage" stdDeviation="2" result="blur"/>
76 <feMerge>
77 <feMergeNode in="flood"/>
78 <feMergeNode in="blur"/>
79 </feMerge>
80 </filter>
81
82 <filter id="GaussianBlur5" filterUnits="objectBoundingBox" x="-20%" y="-20%" width="140%" height="140%">
83 <feGaussianBlur in="StrokePaint" stdDeviation="5"/>
84 </filter>
85
86 <filter id="GaussianBlur6" filterUnits="objectBoundingBox" x="-20%" y="-20%" width="140%" height="140%">
87 <feGaussianBlur in="FillPaint" stdDeviation="5"/>
88 </filter>
89 </defs>
90
91 <g enable-background="new" stroke-dasharray="25 5" stroke="black" stroke-width="3" font-size="14" fill="black">
92
93 <rect x="90" y="50" width="16" height="95" fill="green"/>
94 <g fill-opacity="0.6" stroke="black" stroke-width="3" filter="url(#GaussianBlur1)">
95 <circle cx="098" cy="085" r="25" fill="red"/>
96 <circle cx="080" cy="110" r="25" fill="blue"/>
97 <circle cx="116" cy="110" r="25" fill="green"/>
98 </g>
99 <text x="98" y="160" stroke="none" text-anchor="middle">SourceAlpha</text>
100
101 <desc> =========================================================================================== </desc>
102
103 <rect x="90" y="185" width="16" height="95" fill="green"/>
104 <g fill-opacity="0.6" stroke="black" stroke-width="3" filter="url(#GaussianBlur2)">
105 <circle cx="098" cy="220" r="25" fill="red"/>
106 <circle cx="080" cy="245" r="25" fill="blue"/>
107 <circle cx="116" cy="245" r="25" fill="green"/>
108 </g>
109 <text x="98" y="295" stroke="none" text-anchor="middle">SourceGraphic</text>
110
111 <desc> =========================================================================================== </desc>
112
113 <rect x="230" y="50" width="16" height="95" fill="green"/>
114 <g fill-opacity="0.6" stroke="black" stroke-width="3" filter="url(#GaussianBlur3)">
115 <circle cx="238" cy="085" r="25" fill="red"/>
116 <circle cx="220" cy="110" r="25" fill="blue"/>
117 <circle cx="256" cy="110" r="25" fill="green"/>
118 </g>
119 <text x="238" y="160" stroke="none" text-anchor="middle">BackgroundAlpha</text>
120
121 <desc> =========================================================================================== </desc>
122
123 <rect x="230" y="185" width="16" height="95" fill="green"/>
124 <g fill-opacity="0.6" stroke="black" stroke-width="3" filter="url(#GaussianBlur4)">
125 <circle cx="238" cy="220" r="25" fill="red"/>
126 <circle cx="220" cy="245" r="25" fill="blue"/>
127 <circle cx="256" cy="245" r="25" fill="green"/>
128 </g>
129 <text x="238" y="295" stroke="none" text-anchor="middle">BackgroundImage</text>
130
131 <desc> =========================================================================================== </desc>
132
133 <rect x="370" y="50" width="16" height="95" fill="green"/>
134 <g id='g' stroke-opacity="0.6" stroke="url(#grad1)" stroke-width="3" filter="url(#GaussianBlur5)">
135 <circle cx="378" cy="085" r="25" fill="red"/>
136 <circle cx="360" cy="110" r="25" fill="blue"/>
137 <circle cx="396" cy="110" r="25" fill="green"/>
138 </g>
139 <text x="378" y="160" stroke="none" text-anchor="middle">FillPaint</text>
140
141 <desc> =========================================================================================== </desc>
142
143 <rect x="370" y="185" width="16" height="95" fill="green"/>
144 <g fill-opacity="0.6" fill="url(#grad1)" stroke="black" stroke-width="3" filter="url(#GaussianBlur6)">
145 <circle cx="378" cy="220" r="25"/>
146 <circle cx="360" cy="245" r="25"/>
147 <circle cx="396" cy="245" r="25"/>
148 </g>
149 <text x="378" y="295" stroke="none" text-anchor="middle">StrokePaint</text>
150
151 </g>
152
153 <text x="240" y="30" font-size="20" text-anchor="middle">Filter input test</text>
154
155 </g>
156 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
157 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.2 $</text>
158 </g>
159 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
160 <!-- comment out this watermark once the test is approved -->
161 <g id="draft-watermark">
162 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
163 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
164 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
165 </g>
166 </svg>