Debian Codegraph @

test_non_regression/fail/filter/filters-image-04-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 <!--= SVG 1.1 2nd Edition Test Case =-->
6 <!--======================================================================-->
7 <!--= Copyright 2011 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="ED" author="TB" status="accepted"
15 version="$Revision: 1.3 $" testname="$RCSfile: filters-image-04-f.svg,v $">
16 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feImageElement">
17 <p>
18 This tests the feImage element with a number of different filter primitive subregion values.
19 </p>
20 </d:testDescription>
21 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
22 <p>
23 Run the test. No interaction required.
24 </p>
25 </d:operatorScript>
26 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
27 <p>
28 The test is passed if:
29 </p>
30 <ul>
31 <li>the first row show four smiley faces of the same size, each framed by a blue rectangle</li>
32 <li>the first image on the left on the second row shows half a smiley face (horizontally offset)</li>
33 <li>the second image on the left on the second row shows half a smiley face (vertically offset)</li>
34 <li>the third image on the left on the second row shows the upper-lefthand quarter of the smiley face enlarged to fit the blue rectangle</li>
35 <li>the rightmost image on the second row shows the upper-lefthand quarter of the smiley face (horizontally and vertically offset)</li>
36 </ul>
37 </d:passCriteria>
38 </d:SVGTestCase>
39 <title id="test-title">$RCSfile: filters-image-04-f.svg,v $</title>
40 <defs>
41 <font-face
42 font-family="SVGFreeSansASCII"
43 unicode-range="U+0-7F">
44 <font-face-src>
45 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
46 </font-face-src>
47 </font-face>
48 </defs>
49 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
50 <defs>
51 <filter id="default" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
52 <feImage xlink:href="../images/smiley.png"/>
53 </filter>
54 <filter id="all_specified_relative" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
55 <feImage x="0%" y="0%" width="100%" height="100%"
56 xlink:href="../images/smiley.png"/>
57 </filter>
58 <filter id="all_specified_absolute" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
59 <feImage x="0" y="0" height="1" width="1"
60 xlink:href="../images/smiley.png"/>
61 </filter>
62 <filter id="y_specified" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
63 <feImage y="0%"
64 xlink:href="../images/smiley.png"/>
65 </filter>
66 <filter id="width_specified" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
67 <feImage width="200%"
68 xlink:href="../images/smiley.png"/>
69 </filter>
70 <filter id="height_specified" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
71 <feImage height="200%"
72 xlink:href="../images/smiley.png"/>
73 </filter>
74 <filter id="width_height_specified" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
75 <feImage width="200%" height="200%"
76 xlink:href="../images/smiley.png"/>
77 </filter>
78 <filter id="x_y_specified" x="0" y="0" width="1" height="1" primitiveUnits="objectBoundingBox">
79 <feImage x="0.5" y="0.5"
80 xlink:href="../images/smiley.png"/>
81 </filter>
82 </defs>
83
84 <text text-anchor="middle" x="240" y="40" font-size="16">primitiveUnits = "objectBoundingBox"</text>
85 <g transform="translate(60 100)">
86 <rect fill="red" width="50" height="50" filter="url(#default)"/>
87 <rect fill="red" x="100" width="50" height="50" filter="url(#all_specified_relative)"/>
88 <rect fill="red" x="200" width="50" height="50" filter="url(#all_specified_absolute)"/>
89 <rect fill="red" x="300" width="50" height="50" filter="url(#y_specified)"/>
90
91 <rect fill="red" y="100" width="50" height="50" filter="url(#width_specified)"/>
92 <rect fill="red" x="100" y="100" width="50" height="50" filter="url(#height_specified)"/>
93 <rect fill="red" x="200" y="100" width="50" height="50" filter="url(#width_height_specified)"/>
94 <rect fill="red" x="300" y="100" width="50" height="50" filter="url(#x_y_specified)"/>
95
96 <g id="reference_frames" stroke="blue" stroke-width="1" fill="none">
97 <rect width="50" height="50" />
98 <rect x="100" width="50" height="50"/>
99 <rect x="200" width="50" height="50"/>
100 <rect x="300" width="50" height="50"/>
101 <rect y="100" width="50" height="50"/>
102 <rect x="100" y="100" width="50" height="50"/>
103 <rect x="200" y="100" width="50" height="50"/>
104 <rect x="300" y="100" width="50" height="50"/>
105 </g>
106 </g>
107 </g>
108 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
109 <text id="revision" x="10" y="340" stroke="none"
110 fill="black">$Revision: 1.3 $</text>
111 </g>
112 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
113 <!-- comment out this watermark once the test is approved
114 <g id="draft-watermark">
115 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
116 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
117 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
118 </g>-->
119 </svg>