Debian Codegraph @

test_non_regression/fail/filter/filters-composite-03-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="CL" author="ED" status="accepted"
13 version="$Revision: 1.4 $" testname="$RCSfile: filters-composite-03-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 Tests the arithmetic operator in feComposite.
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 is passed if there are four filled squares visible, and the
27 fill color matches the respective reference stroke exactly.
28 </p>
29 </d:passCriteria>
30 </d:SVGTestCase>
31 <title id="test-title">$RCSfile: filters-composite-03-f.svg,v $</title>
32 <defs>
33 <font-face
34 font-family="SVGFreeSansASCII"
35 unicode-range="U+0-7F">
36 <font-face-src>
37 <font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/>
38 </font-face-src>
39 </font-face>
40 </defs>
41 <g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18">
42 <defs>
43 <filter id="composite-ident" x="0" y="0" width="1" height="1">
44 <feComposite operator="arithmetic" in="FillPaint" in2="StrokePaint" k1="0" k2="1" k3="-1" k4="0"/>
45 </filter>
46 <filter id="composite-negative" x="0" y="0" width="1" height="1">
47 <feComposite operator="arithmetic" in="FillPaint" in2="FillPaint" k1="0" k2="2" k3="-1.5" k4="0"/>
48 </filter>
49 <filter id="composite-mixed" x="0" y="0" width="1" height="1">
50 <feComposite operator="arithmetic" in="FillPaint" in2="StrokePaint" k1="1" k2="-0.5" k3="0.2" k4="-0.1"/>
51 </filter>
52 <filter id="composite-clamped" x="0" y="0" width="1" height="1">
53 <feComposite operator="arithmetic" in="FillPaint" in2="StrokePaint" k1="0" k2="10" k3="20" k4="0"/>
54 </filter>
55 </defs>
56
57 <g transform="translate(100 30)">
58 <rect id="reference1" fill="lime" width="120" height="120"/>
59 <rect fill="red" stroke="red" filter="url(#composite-ident)" x="10" y="10" width="100" height="100"/>
60 </g>
61 <g transform="translate(250 30)">
62 <rect fill="#0F0" filter="url(#composite-negative)" x="10" y="10" width="100" height="100"/>
63 <rect id="reference2" stroke="#7FFF7F" x="5" y="5" width="110" height="110" stroke-width="12" fill="none"/>
64 </g>
65 <g transform="translate(100 180)">
66 <rect fill="rgb(43,17,12)" stroke="rgb(32,42,37)" filter="url(#composite-mixed)" x="10" y="10" width="100" height="100"/>
67 <rect id="reference3" stroke="#666" x="5" y="5" width="110" height="110" stroke-width="12" fill="none"/>
68 </g>
69 <g transform="translate(250 180)">
70 <rect fill="rgb(0,127,0)" stroke="rgb(0,0,127)" filter="url(#composite-clamped)" x="10" y="10" width="100" height="100"/>
71 <rect id="reference4" stroke="rgb(0,255,255)" x="5" y="5" width="110" height="110" stroke-width="12" fill="none"/>
72 </g>
73 </g>
74 <g font-family="SVGFreeSansASCII,sans-serif" font-size="32">
75 <text id="revision" x="10" y="340" stroke="none"
76 fill="black">$Revision: 1.4 $</text>
77 </g>
78 <rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/>
79 <!-- comment out this watermark once the test is approved -->
80 <!--
81 <g id="draft-watermark">
82 <rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/>
83 <text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240"
84 text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text>
85 </g>
86 -->
87 </svg>