| 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="created" |
| 13 |
version="$Revision: 1.2 $" testname="$RCSfile: filters-conv-05-f.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feConvolveMatrixElementOrderAttribute"> |
| 15 |
<p> |
| 16 |
Tests feConvolveMatrix and the 'edgeMode' attribute. |
| 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 |
You should see three filtered images, each result should be slightly different, if they all look the same the test has failed. |
| 27 |
The rendered picture should match the reference image. |
| 28 |
</p> |
| 29 |
</d:passCriteria> |
| 30 |
</d:SVGTestCase> |
| 31 |
<title id="test-title">$RCSfile: filters-conv-05-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="emNone" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1"> |
| 44 |
<feConvolveMatrix kernelMatrix="1 1 1 1 -7 1 1 1 1" preserveAlpha="false" edgeMode="none"/> |
| 45 |
</filter> |
| 46 |
<filter id="emWrap" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1"> |
| 47 |
<feConvolveMatrix kernelMatrix="1 1 1 1 -7 1 1 1 1" preserveAlpha="false" edgeMode="wrap"/> |
| 48 |
</filter> |
| 49 |
<filter id="emDuplicate" filterUnits="objectBoundingBox" primitiveUnits="objectBoundingBox" x="0" y="0" width="1" height="1"> |
| 50 |
<feConvolveMatrix kernelMatrix="1 1 1 1 -7 1 1 1 1" preserveAlpha="false" edgeMode="duplicate"/> |
| 51 |
</filter> |
| 52 |
|
| 53 |
<g id="box"> |
| 54 |
<rect width="10" height="100" fill="blue"/> |
| 55 |
<rect x="10" width="100" height="10" fill="yellow"/> |
| 56 |
<rect x="110" width="10" height="100" fill="lime"/> |
| 57 |
<rect x="10" y="90" width="100" height="10" fill="black"/> |
| 58 |
</g> |
| 59 |
</defs> |
| 60 |
|
| 61 |
<text x="50%" y="3em" style="font-size:18px; text-anchor:middle">feConvolveMatrix 'edgeMode'</text> |
| 62 |
|
| 63 |
<use xlink:href="#box" filter="url(#emNone)" transform="translate(40 100)"/> |
| 64 |
<text x="100" y="220" font-size="14" text-anchor="middle">none</text> |
| 65 |
|
| 66 |
<use xlink:href="#box" filter="url(#emWrap)" transform="translate(180 100)"/> |
| 67 |
<text x="240" y="220" font-size="14" text-anchor="middle">wrap</text> |
| 68 |
|
| 69 |
<use xlink:href="#box" filter="url(#emDuplicate)" transform="translate(320 100)"/> |
| 70 |
<text x="380" y="220" font-size="14" text-anchor="middle">duplicate</text> |
| 71 |
</g> |
| 72 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 73 |
<text id="revision" x="10" y="340" stroke="none" |
| 74 |
fill="black">$Revision: 1.2 $</text> |
| 75 |
</g> |
| 76 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 77 |
<!-- comment out this watermark once the test is approved --> |
| 78 |
<g id="draft-watermark"> |
| 79 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 80 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 81 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 82 |
</g> |
| 83 |
</svg> |