Debian Codegraph @

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