Debian Codegraph @

test_non_regression/fail/filter/filters-light-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="CM" author="ED" status="accepted"
13 version="$Revision: 1.6 $" testname="$RCSfile: filters-light-02-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feDistantLightAzimuthAttribute">
15 <p>
16 This test verifies that the <a>'azimuth'</a> attribute is interpreted as a clockwise value in degrees.
17 </p>
18 <p>The test should show four arrows, indicating the direction of the incoming distant light.
19 As the four circles are lit by a specular lighting filter a faint shaded arc should appear.
20 The middle of each such arc should be where the corresponding arrow points.</p>
21 </d:testDescription>
22 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
23 <p>
24 Run the test. No interaction required.
25 </p>
26 </d:operatorScript>
27 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
28 <p>
29 The test has passed if the shaded arcs are displayed only on the side indicated by the arrows.
30 </p>
31 </d:passCriteria>
32 </d:SVGTestCase>
33 <title id="test-title">$RCSfile: filters-light-02-f.svg,v $</title>
34 <defs>
35 <font-face
36 font-family="SVGFreeSansASCII"
37 unicode-range="U+0-7F">
38 <font-face-src>
39 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
40 </font-face-src>
41 </font-face>
42 </defs>
43 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
44 <defs>
45 <filter id="right">
46 <feSpecularLighting surfaceScale="5" specularConstant="100" specularExponent="10">
47 <feDistantLight azimuth="0" elevation="30"/>
48 </feSpecularLighting>
49 </filter>
50 <filter id="down">
51 <feSpecularLighting surfaceScale="5" specularConstant="100" specularExponent="10">
52 <feDistantLight azimuth="90" elevation="30"/>
53 </feSpecularLighting>
54 </filter>
55 <filter id="left">
56 <feSpecularLighting surfaceScale="5" specularConstant="100" specularExponent="10">
57 <feDistantLight azimuth="180" elevation="30"/>
58 </feSpecularLighting>
59 </filter>
60 <filter id="up">
61 <feSpecularLighting surfaceScale="5" specularConstant="100" specularExponent="10">
62 <feDistantLight azimuth="270" elevation="30"/>
63 </feSpecularLighting>
64 </filter>
65
66 <marker id="arrow" markerWidth="10" markerHeight="10" viewBox="0 0 10 40" overflow="visible" orient="auto">
67 <path d="M-1 5l10 -5l-10 -5z"/>
68 </marker>
69 </defs>
70
71 <text x="50%" y="3em" style="font-size:18px; text-anchor:middle">'feDistantLight' azimuth</text>
72
73 <g transform="scale(4) translate(0 50)">
74 <circle id="c1" r="10" filter="url(#right)" transform="translate(20 0)"/>
75 <circle id="c2" r="10" filter="url(#down)" transform="translate(50 0)"/>
76 <circle id="c3" r="10" filter="url(#left)" transform="translate(80 0)"/>
77 <circle id="c4" r="10" filter="url(#up)" transform="translate(110 0)"/>
78 </g>
79
80 <line marker-end="url(#arrow)" x1="0" y1="-25" x2="0" y2="25" stroke="black" stroke-width="3" transform="translate(200 180)"/>
81 <line marker-end="url(#arrow)" x1="0" y1="-25" x2="0" y2="25" stroke="black" stroke-width="3" transform="rotate(90) translate(200 -350)"/>
82 <line marker-end="url(#arrow)" x1="0" y1="-25" x2="0" y2="25" stroke="black" stroke-width="3" transform="rotate(180) translate(-440 -225)"/>
83 <line marker-end="url(#arrow)" x1="0" y1="-25" x2="0" y2="25" stroke="black" stroke-width="3" transform="rotate(270) translate(-200 50)"/>
84
85 </g>
86 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
87 <text id="revision" x="10" y="340" stroke="none"
88 fill="black">$Revision: 1.6 $</text>
89 </g>
90 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
91 <!-- comment out this watermark once the test is approved --><!--
92 <g id="draft-watermark">
93 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
94 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
95 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
96 </g>-->
97 </svg>