| 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="CM" author="ED" status="accepted" |
| 13 |
version="$Revision: 1.9 $" testname="$RCSfile: filters-image-02-b.svg,v $"> |
| 14 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/filters.html#feImage"> |
| 15 |
<p> |
| 16 |
Tests the animatability of 'xlink:href' on the 'feImage' element. |
| 17 |
The test will first show two blue images that should look exactly the same, |
| 18 |
then after two seconds both images should simultaneously change to show two |
| 19 |
pink images that also look exactly the same. |
| 20 |
</p> |
| 21 |
</d:testDescription> |
| 22 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 23 |
<p>Run the test. No interaction required. |
| 24 |
|
| 25 |
</p> |
| 26 |
</d:operatorScript> |
| 27 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 28 |
<p> |
| 29 |
The test has passed if: |
| 30 |
</p> |
| 31 |
<ul> |
| 32 |
<li>at first there are two identical <a href="../../images/bluesquidj.png">blue images</a> shown next to each other</li> |
| 33 |
<li>after two seconds the two blue images are simultaneously replaced by two <a href="../../images/pinksquidj.png">pink images</a></li> |
| 34 |
</ul> |
| 35 |
</d:passCriteria> |
| 36 |
</d:SVGTestCase> |
| 37 |
<title id="test-title">$RCSfile: filters-image-02-b.svg,v $</title> |
| 38 |
<defs> |
| 39 |
<font-face |
| 40 |
font-family="SVGFreeSansASCII" |
| 41 |
unicode-range="U+0-7F"> |
| 42 |
<font-face-src> |
| 43 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 44 |
</font-face-src> |
| 45 |
</font-face> |
| 46 |
</defs> |
| 47 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 48 |
|
| 49 |
<defs> |
| 50 |
<filter id="feimage" x="0" y="0" width="100%" height="100%" filterUnits="objectBoundingBox"> |
| 51 |
<feImage xlink:href="../images/bluesquidj.png"> |
| 52 |
<set attributeName="xlink:href" to="../images/pinksquidj.png" begin="2s"/> |
| 53 |
</feImage> |
| 54 |
</filter> |
| 55 |
</defs> |
| 56 |
|
| 57 |
<rect fill="red" filter="url(#feimage)" x="70" y="60" width="150" height="200"/> |
| 58 |
<image xlink:href="../images/bluesquidj.png" x="260" y="60" width="150" height="200"> |
| 59 |
<set attributeName="xlink:href" to="../images/pinksquidj.png" begin="2s"/> |
| 60 |
</image> |
| 61 |
|
| 62 |
<g text-anchor="middle"> |
| 63 |
<text x="50%" y="60" font-size="30">Animation in filters</text> |
| 64 |
<text x="145" y="220">'feImage'</text> |
| 65 |
<text x="335" y="220">'image'</text> |
| 66 |
</g> |
| 67 |
</g> |
| 68 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 69 |
<text id="revision" x="10" y="340" stroke="none" |
| 70 |
fill="black">$Revision: 1.9 $</text> |
| 71 |
</g> |
| 72 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 73 |
<!-- comment out this watermark once the test is approved --><!-- |
| 74 |
<g id="draft-watermark"> |
| 75 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 76 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 77 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 78 |
</g>--> |
| 79 |
</svg> |