Debian Codegraph @

test_non_regression/fail/filter/filters-light-04-f.svg

raw
1 <svg version="1.1" baseProfile="full" 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="ED" status="accepted"
15 version="$Revision: 1.4 $" testname="$RCSfile: filters-light-04-f.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feSpotLightLimitingConeAngleAttribute">
17 <p>
18 Test various values for limitingConeAngle in feSpotLight.
19 </p>
20 <p>
21 There should be four rects in two rows. Each of the rects has a different filter applied,
22 and each of those filters uses different values for limitingConeAngle.
23 </p>
24 </d:testDescription>
25 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
26 <p>
27 Run the test. No interaction required.
28 </p>
29 </d:operatorScript>
30 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
31 <p>
32 The rendered image should look approximately like the reference image, and the third rectangle from the left
33 in each row must be animated.
34 </p>
35 </d:passCriteria>
36 </d:SVGTestCase>
37 <title id="test-title">$RCSfile: filters-light-04-f.svg,v $</title>
38 <defs>
39 <font-face font-family="SVGFreeSansASCII" 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 <!-- Title -->
47 <text x="240" y="50" fill="black" font-size="16" font-family="Arial" text-anchor="middle">feSpotLight's limitingConeAngle</text>
48 <!-- ===================================================================== -->
49 <!-- Filter definitions -->
50 <!-- ===================================================================== -->
51 <defs>
52 <!-- ================================================= -->
53 <!-- feSpotLight -->
54 <!-- ================================================= -->
55 <filter id="spotLightA" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
56 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
57 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="30"/>
58 </feDiffuseLighting>
59 </filter>
60 <filter id="spotLightB" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
61 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
62 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="20"/>
63 </feDiffuseLighting>
64 </filter>
65 <filter id="spotLightC" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
66 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
67 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="0">
68 <animate attributeName="limitingConeAngle" from="0" to="50" dur="10s" fill="freeze"/>
69 </feSpotLight>
70 </feDiffuseLighting>
71 </filter>
72 <filter id="spotLightD" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
73 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
74 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="5"/>
75 </feDiffuseLighting>
76 </filter>
77 <filter id="spotLightE" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
78 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
79 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="-30"/>
80 </feDiffuseLighting>
81 </filter>
82 <filter id="spotLightF" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
83 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
84 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="-20"/>
85 </feDiffuseLighting>
86 </filter>
87 <filter id="spotLightG" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
88 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
89 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="0">
90 <animate attributeName="limitingConeAngle" from="0" to="-50" dur="10s" fill="freeze"/>
91 </feSpotLight>
92 </feDiffuseLighting>
93 </filter>
94 <filter id="spotLightH" filterUnits="objectBoundingBox" x="0" y="0" width="1" height="1">
95 <feDiffuseLighting in="SourceGraphic" diffuseConstant="1" surfaceScale="10" lighting-color="white">
96 <feSpotLight x="25" y="0" z="35" pointsAtX="25" pointsAtY="30" pointsAtZ="0" specularExponent="0" limitingConeAngle="-5"/>
97 </feDiffuseLighting>
98 </filter>
99 </defs>
100 <!-- feSpotLight -->
101 <g transform="translate(0 -20)">
102 <g transform="translate(0 110)" font-size="9" font-family="Arial">
103 <text x="70" y="30">30</text>
104 <text x="165" y="30">20</text>
105 <text x="260" y="30">Animated (0..50)</text>
106 <text x="355" y="30">5</text>
107 <g transform="translate(0 100)">
108 <text x="70" y="30">-30</text>
109 <text x="165" y="30">-20</text>
110 <text x="260" y="30">Animated (0..-50)</text>
111 <text x="355" y="30">-5</text>
112 </g>
113 </g>
114 <g>
115 <rect transform="translate(70, 145)" width="50" height="30" filter="url(#spotLightA)"/>
116 <rect transform="translate(165, 145)" width="50" height="30" filter="url(#spotLightB)"/>
117 <rect transform="translate(260, 145)" width="50" height="30" filter="url(#spotLightC)"/>
118 <rect transform="translate(355, 145)" width="50" height="30" filter="url(#spotLightD)"/>
119 <rect transform="translate(70, 245)" width="50" height="30" filter="url(#spotLightE)"/>
120 <rect transform="translate(165, 245)" width="50" height="30" filter="url(#spotLightF)"/>
121 <rect transform="translate(260, 245)" width="50" height="30" filter="url(#spotLightG)"/>
122 <rect transform="translate(355, 245)" width="50" height="30" filter="url(#spotLightH)"/>
123 </g>
124 </g>
125 </g>
126 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
127 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.4 $</text>
128 </g>
129 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
130 <!-- comment out this watermark once the test is approved -->
131 <!--<g id="draft-watermark">
132 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
133 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
134 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
135 </g>-->
136 </svg>