Debian Codegraph @

test_non_regression/fail/filter/filters-felem-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="BB" author="CL" status="accepted"
15 version="$Revision: 1.7 $" testname="$RCSfile: filters-felem-01-b.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#FilterElement">
17 <p>
18 Test which verifies null filters and filter regions.
19 </p>
20 <p>
21 Four subtests each consist of a small red circle overdrawn with a larger green circle.
22 Filters are applied to three of the red circles, hiding them and showing the green circle.
23 </p>
24 <p>
25 The top left subtest has no filter applied to the circle, so the green circle is visible and the red one is not.
26 The top right subtest applies a filter to the red circle, but there is no corresponding filter element.
27 Thus, a null filter is applied and the red circle is not shown, allowing the green circle to be seen.
28 </p>
29 <p>
30 The bottom left subtest applies an empty filter element with the default filterRegion, and the bottom right
31 subtest applies an empty filter with a non-default filterRegion. In both cases where empty filters are applied,
32 the result of the filter is a transparent black offscreen, thus showing the green circle underneath.
33 </p>
34 </d:testDescription>
35 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
36 <p>
37 Run the test. No interaction required.
38 </p>
39 </d:operatorScript>
40 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
41 <p>
42 The test is passed if there are four green circles visible.
43 </p>
44 </d:passCriteria>
45 </d:SVGTestCase>
46 <title id="test-title">$RCSfile: filters-felem-01-b.svg,v $</title>
47 <defs>
48 <font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F">
49 <font-face-src>
50 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
51 </font-face-src>
52 </font-face>
53 </defs>
54 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
55 <defs>
56 <filter id="null"/>
57 <filter id="nullreg" filterUnits="objectBoundingBox" x="40%" y="40%" width="20%" height="20%"/>
58 </defs>
59 <g>
60 <circle r="30" fill="red" cx="130" cy="60"/>
61 <circle r="40" fill="lime" cx="130" cy="60"/>
62 <text font-size="20" x="130" y="130" text-anchor="middle">No filter</text>
63 </g>
64 <g>
65 <circle r="30" fill="lime" cx="130" cy="210"/>
66 <circle r="40" fill="red" cx="130" cy="210" filter="url(#null)"/>
67 <text font-size="20" x="130" y="280" text-anchor="middle">Null filter</text>
68 </g>
69 <g>
70 <circle r="30" fill="lime" cx="330" cy="60"/>
71 <circle r="40" fill="red" cx="330" cy="60" filter="url(#notthere)"/>
72 <text font-size="20" x="330" y="130" text-anchor="middle">Non-existent filter</text>
73 </g>
74 <g>
75 <circle r="30" fill="lime" cx="330" cy="210"/>
76 <circle r="40" fill="red" cx="330" cy="210" filter="url(#nullreg)"/>
77 <text font-size="20" x="330" y="280" text-anchor="middle">Null with small region filter</text>
78 </g>
79 </g>
80 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
81 <text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.7 $</text>
82 </g>
83 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/>
84 <!-- comment out this watermark once the test is approved -->
85 <!--<g id="draft-watermark">
86 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
87 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
88 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
89 </g>-->
90 </svg>