| 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 |
|
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 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="accepted" |
| 13 |
version="$Revision: 1.9 $" testname="$RCSfile: filters-conv-02-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 with different values for the 'order' attribute. |
| 17 |
</p> |
| 18 |
</d:testDescription> |
| 19 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 20 |
<p>Run the test. No interaction required. |
| 21 |
|
| 22 |
</p> |
| 23 |
</d:operatorScript> |
| 24 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 25 |
<p>You should see three filtered images. Each image is the same |
| 26 |
and has the same filter applied to it. |
| 27 |
The test has passed if all the three filtered images look the same, and the filtered result shows bright white edges on a dark background. |
| 28 |
The rendered picture should match the reference image. |
| 29 |
</p> |
| 30 |
</d:passCriteria> |
| 31 |
</d:SVGTestCase> |
| 32 |
<title id="test-title">$RCSfile: filters-conv-02-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="convolve-without-order" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 45 |
<feConvolveMatrix kernelMatrix="1 1 1 1 -8 1 1 1 1" preserveAlpha="true"/> |
| 46 |
</filter> |
| 47 |
<filter id="convolve-with-order1" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 48 |
<feConvolveMatrix order="3" kernelMatrix="1 1 1 1 -8 1 1 1 1" preserveAlpha="true"/> |
| 49 |
</filter> |
| 50 |
<filter id="convolve-with-order2" filterUnits="objectBoundingBox" x="0%" y="0%" width="100%" height="100%"> |
| 51 |
<feConvolveMatrix order="3 3" kernelMatrix="1 1 1 1 -8 1 1 1 1" preserveAlpha="true"/> |
| 52 |
</filter> |
| 53 |
</defs> |
| 54 |
|
| 55 |
<text x="50%" y="3em" style="font-size:18px; text-anchor:middle">feConvolveMatrix 'order' attribute</text> |
| 56 |
|
| 57 |
<image x="90" y="100" width="100" height="100" xlink:href="images/image1.jpg" filter="url(#convolve-without-order)"/> |
| 58 |
<text x="135" y="220" style="font-size:9px; text-anchor:middle">without order</text> |
| 59 |
|
| 60 |
<image x="190" y="100" width="100" height="100" xlink:href="images/image1.jpg" filter="url(#convolve-with-order1)"/> |
| 61 |
<text x="235" y="220" style="font-size:9px; text-anchor:middle">order="3"</text> |
| 62 |
|
| 63 |
<image x="290" y="100" width="100" height="100" xlink:href="images/image1.jpg" filter="url(#convolve-with-order2)"/> |
| 64 |
<text x="335" y="220" style="font-size:9px; text-anchor:middle">order="3 3"</text> |
| 65 |
</g> |
| 66 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 67 |
<text id="revision" x="10" y="340" stroke="none" |
| 68 |
fill="black">$Revision: 1.9 $</text> |
| 69 |
</g> |
| 70 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 71 |
|
| 72 |
|
| 73 |
|
| 74 |
|
| 75 |
|
| 76 |
|
| 77 |
</svg> |