Debian Codegraph @

test_non_regression/fail/filter/filters-composite-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 <!--= 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.4" reviewer="[reviewer]" author="[author]" status="empty"
13 version="$Revision: 1.1 $" testname="$RCSfile: filters-composite-04-f.svg,v $">
14 <d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feCompositeElement">
15 <p>
16 Test feComposite and the arithmetic operator to implement a simple dissolve operation.
17 </p>
18 </d:testDescription>
19 <d:operatorScript xmlns="http://www.w3.org/1999/xhtml">
20 <p>
21 Run the test. No interaction required.
22 </p>
23 </d:operatorScript>
24 <d:passCriteria xmlns="http://www.w3.org/1999/xhtml">
25 <p>
26 The test has passed if there are four images visible, each in
27 different stages of dissolving the bird in the foreground into the
28 tree in the background.
29 </p>
30 </d:passCriteria>
31 </d:SVGTestCase>
32 <title id="test-title">$RCSfile: filters-composite-04-f.svg,v $</title>
33 <defs>
34 <font-face
35 font-family="SVGFreeSansASCII"
36 unicode-range="U+0-7F">
37 <font-face-src>
38 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
39 </font-face-src>
40 </font-face>
41 </defs>
42 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
43 <defs>
44 <filter id="dissolve1" x="0" y="0" width="1" height="1">
45 <feImage xlink:href="../images/stefan_252_tRNS_opti.png" result="bird"/>
46 <feComposite operator="arithmetic" in="SourceGraphic" in2="bird" k1="0" k2="0.5" k3="0.5" k4="0"/>
47 </filter>
48 <filter id="dissolve2" x="0" y="0" width="1" height="1">
49 <feImage xlink:href="../images/stefan_252_tRNS_opti.png" result="bird"/>
50 <feComposite operator="arithmetic" in="SourceGraphic" in2="bird" k1="0" k2="0.1" k3="0.9" k4="0"/>
51 </filter>
52 <filter id="dissolve3" x="0" y="0" width="1" height="1">
53 <feImage xlink:href="../images/stefan_252_tRNS_opti.png" result="bird"/>
54 <feComposite operator="arithmetic" in="SourceGraphic" in2="bird" k1="0" k2="0.75" k3="0.25" k4="0"/>
55 </filter>
56 <filter id="dissolve4" x="0" y="0" width="1" height="1">
57 <feImage xlink:href="../images/stefan_252_tRNS_opti.png" result="bird"/>
58 <feComposite operator="arithmetic" in="SourceGraphic" in2="bird" k1="0" k2="0.25" k3="0.75" k4="0"/>
59 </filter>
60 </defs>
61
62 <image width="120" height="80" xlink:href="../images/tree.jpg" filter="url(#dissolve1)" transform="translate(100 80)"/>
63 <image width="120" height="80" xlink:href="../images/tree.jpg" filter="url(#dissolve2)" transform="translate(250 80)"/>
64 <image width="120" height="80" xlink:href="../images/tree.jpg" filter="url(#dissolve3)" transform="translate(100 190)"/>
65 <image width="120" height="80" xlink:href="../images/tree.jpg" filter="url(#dissolve4)" transform="translate(250 190)"/>
66 </g>
67 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
68 <text id="revision" x="10" y="340" stroke="none"
69 fill="black">$Revision: 1.1 $</text>
70 </g>
71 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
72 <!-- comment out this watermark once the test is approved -->
73 <g id="draft-watermark">
74 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
75 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
76 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
77 </g>
78 </svg>