Debian Codegraph @

test_non_regression/fail/filter/filters-felem-02-f.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.3" reviewer="TB" author="ED" status="accepted"
13 version="$Revision: 1.7 $" testname="$RCSfile: filters-felem-02-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#FilterElementPrimitiveUnitsAttribute">
15 <p>
16 This tests the 'primitiveUnits' attribute and how it affects other attribute values.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>
21 You should see three rectangles in a row, then a row of three circles, then a row of three stars.
22 </p>
23 </d:operatorScript>
24 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 The test has passed if:
27 </p>
28 <ul>
29 <li>There is no red visible anywhere</li>
30 <li>The first row has three green rectangles</li>
31 <li>The second row has three black circles, and the middle one has more blurred edges than the other two.</li>
32 <li>The third row has three green stars.</li>
33 </ul>
34 </d:passCriteria>
35 </d:SVGTestCase>
36 <title id="test-title">$RCSfile: filters-felem-02-f.svg,v $</title>
37 <defs>
38 <font-face
39 font-family="SVGFreeSansASCII"
40 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
48 <defs>
49 <filter id="usou1" primitiveUnits="userSpaceOnUse" x="0" y="0" width="100%" height="100%">
50 <feFlood flood-color="lime" x="25" y="25" width="50" height="50"/>
51 </filter>
52 <filter id="obb1" primitiveUnits="objectBoundingBox" x="0" y="0" width="100%" height="100%">
53 <feFlood flood-color="lime" x="25%" y="25%" width="50%" height="50%"/>
54 </filter>
55 <filter id="default1" x="0" y="0" width="100%" height="100%">
56 <feFlood flood-color="lime" x="25" y="25" width="50" height="50"/>
57 </filter>
58
59 <filter id="usou2" primitiveUnits="userSpaceOnUse" x="-50%" y="-50%" width="200%" height="200%">
60 <feGaussianBlur stdDeviation="0.2"/>
61 </filter>
62 <filter id="obb2" primitiveUnits="objectBoundingBox" x="-50%" y="-50%" width="200%" height="200%">
63 <feGaussianBlur stdDeviation="0.2"/>
64 </filter>
65 <filter id="default2" x="-50%" y="-50%" width="200%" height="200%">
66 <feGaussianBlur stdDeviation="0.2"/>
67 </filter>
68
69 <filter id="usou3" primitiveUnits="userSpaceOnUse" x="-50%" y="-50%" width="200%" height="200%">
70 <feOffset dx="2" dy="2"/>
71 </filter>
72 <filter id="obb3" filterUnits="userSpaceOnUse" primitiveUnits="objectBoundingBox" x="-50%" y="-50%" width="200%" height="200%">
73 <feOffset dx="2" dy="2"/>
74 </filter>
75 <filter id="default3" x="-50%" y="-50%" width="200%" height="200%">
76 <feOffset dx="2" dy="2"/>
77 </filter>
78
79 <polygon id="star" points="300,60 311.755,83.819 338.042,87.639 319.021,106.180 323.511,132.360 300,120 276.488,132.360 280.978,106.180 261.957,87.639 288.244,83.819 300,60 311.755,83.819"/>
80
81 </defs>
82
83 <g transform="translate(80 0)">
84
85 <rect fill="red" width="50" height="50" transform="translate(25 25)"/>
86 <rect fill="red" width="100" height="100" filter="url(#usou1)" transform="translate(0 0)"/>
87
88 <rect fill="red" width="50" height="50" transform="translate(125 25)"/>
89 <rect fill="red" width="100" height="100" filter="url(#obb1)" transform="translate(100 0)"/>
90
91 <rect fill="red" width="50" height="50" transform="translate(225 25)"/>
92 <rect fill="red" width="100" height="100" filter="url(#default1)" transform="translate(200 0)"/>
93
94 <g transform="translate(50 40)">
95 <circle r="30" filter="url(#usou2)" transform="translate(0 100)"/>
96 <circle r="30" filter="url(#obb2)" transform="translate(100 100)"/>
97 <circle r="30" filter="url(#default2)" transform="translate(200 100)"/>
98 </g>
99
100
101 <use xlink:href="#star" transform="translate(-250 150)" fill="red"/>
102 <use xlink:href="#star" transform="translate(-252 148)" fill="lime" filter="url(#usou3)"/>
103 <use xlink:href="#star" transform="translate(-250 150)" fill="none" stroke-width="2" stroke="lime"/>
104
105 <use xlink:href="#star" transform="translate(-150 150)" fill="red"/>
106 <use xlink:href="#star" transform="translate(-302 5.1)" fill="lime" filter="url(#obb3)"/>
107 <use xlink:href="#star" transform="translate(-150 150)" fill="none" stroke-width="2" stroke="lime"/>
108
109 <use xlink:href="#star" transform="translate(-50 150)" fill="red"/>
110 <use xlink:href="#star" transform="translate(-52 148)" fill="lime" filter="url(#default3)"/>
111 <use xlink:href="#star" transform="translate(-50 150)" fill="none" stroke-width="2" stroke="lime"/>
112
113 </g>
114 </g>
115 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
116 <text id="revision" x="10" y="340" stroke="none"
117 fill="black">$Revision: 1.7 $</text>
118 </g>
119 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
120 <!-- comment out this watermark once the test is approved
121 <g id="draft-watermark">
122 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
123 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
124 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
125 </g>-->
126 </svg>
127