| 1 |
<svg version="1.1" baseProfile="tiny" id="svg-root" |
| 2 |
width="100%" height="100%" viewBox="0 0 480 360" |
| 3 |
xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 4 |
<!--======================================================================--> |
| 5 |
<!--= SVG 1.1 2nd Edition Test Case =--> |
| 6 |
<!--======================================================================--> |
| 7 |
<!--= Copyright 2009 World Wide Web Consortium, (Massachusetts =--> |
| 8 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 9 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 10 |
<!--= All Rights Reserved. =--> |
| 11 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 12 |
<!--======================================================================--> |
| 13 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" |
| 14 |
template-version="1.4" reviewer="MI" author="CN" status="accepted" |
| 15 |
version="$Revision: 1.5 $" testname="$RCSfile: linking-a-05-t.svg,v $"> |
| 16 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://www.w3.org/TR/SVG11/linking.html#Links"> |
| 17 |
<p> |
| 18 |
Verify if the 'a' element properly accept the transform |
| 19 |
attibute. There are three subtests, in each of which one |
| 20 |
of three sets of colored arrows comprise the content of |
| 21 |
an 'a' element. The link destination is expressed by |
| 22 |
"xlink:href=" as in the test 'linking-a-04-t.svg'. |
| 23 |
The arrows transformed is in the brighter color, and the |
| 24 |
arrows before transformation is shown in the darker color. |
| 25 |
The transformation parameters used for each 'a' element is |
| 26 |
shown on the left side of each arrow. |
| 27 |
</p> |
| 28 |
<p> |
| 29 |
The top-most arrow (yellow) is rotated for 20 degree. |
| 30 |
The middle arrow (green) is skewed horizontally for |
| 31 |
-30 degree, and the last arrow (cyan) is translated |
| 32 |
for (-10, -20). |
| 33 |
</p> |
| 34 |
|
| 35 |
<p> |
| 36 |
The test uses the 'rect' and 'polygon' elements, as well as basic fill (solid simple colors and RGB values), |
| 37 |
stroke (black and colored wide and 1-pixel lines), font-family (Arial) and font-size properties. |
| 38 |
</p> |
| 39 |
</d:testDescription> |
| 40 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 41 |
<p> |
| 42 |
The user should interact with each of the arrows activating each of the links, |
| 43 |
using the UA's back mechanism to restart each link test. |
| 44 |
</p> |
| 45 |
</d:operatorScript> |
| 46 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 47 |
<p> |
| 48 |
Each arrow, i.e. link, should behave as described |
| 49 |
in 'linking-a-04-t.svg'. The arrows in this test |
| 50 |
have the same 'xlink:href' attribute as the 'linking-a-04-t' |
| 51 |
test. |
| 52 |
</p> |
| 53 |
</d:passCriteria> |
| 54 |
</d:SVGTestCase> |
| 55 |
<title id="test-title">$RCSfile: linking-a-05-t.svg,v $</title> |
| 56 |
<defs> |
| 57 |
<font-face font-family="SVGFreeSansASCII" unicode-range="U+0-7F"> |
| 58 |
<font-face-src> |
| 59 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 60 |
</font-face-src> |
| 61 |
</font-face> |
| 62 |
</defs> |
| 63 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 64 |
<text x="90" y="16" font-size="12">Verify transform attributes in the 'a' element.</text> |
| 65 |
<!-- First linking test: link to another SVG file in same location. --> |
| 66 |
<path fill="rgb(128,128,0)" stroke="rgb(0,0,128)" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 67 |
<a xlink:href="../images/linkingToc-t.svg" transform="rotate(20,225,65)"> |
| 68 |
<path fill="yellow" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 69 |
</a> |
| 70 |
<text x="10" y="45" font-size="10">transform="rotate(20,225,65)</text> |
| 71 |
<!-- Second linking test: link to another object in this file. --> |
| 72 |
<g transform="translate(0,90)"> |
| 73 |
<path fill="rgb(0,128,0)" stroke="rgb(0,0,128)" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 74 |
<a xlink:href="#internal-circle" transform="skewX(-30)"> |
| 75 |
<path fill="lime" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 76 |
</a> |
| 77 |
<text x="10" y="45" font-size="10">transform="skewX(-30)</text> |
| 78 |
</g> |
| 79 |
<!-- Third linking test: links to external, remote, non-SVG content (for --> |
| 80 |
<!-- plugin viewers in browser environments.) --> |
| 81 |
<g transform="translate(0,180)"> |
| 82 |
<path fill="rgb(0,128,128)" stroke="rgb(0,0,128)" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 83 |
<a xlink:href="http://www.w3.org" transform="translate(-10,-20)"> |
| 84 |
<path fill="aqua" stroke="blue" d="M 165,40 h 100 v -12 l 45 36 l -45 36 v -12 h -100 z"/> |
| 85 |
</a> |
| 86 |
<text x="10" y="45" font-size="10">transform="translate(-10,-20)</text> |
| 87 |
</g> |
| 88 |
<!-- Link target of second test --> |
| 89 |
<circle id="internal-circle" cx="390" cy="153" r="20" stroke="lime" fill="yellow" stroke-width="4"/> |
| 90 |
<text x="350" y="189" font-size="10">id="internal-circle"</text> |
| 91 |
</g> |
| 92 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 93 |
<text id="revision" x="10" y="340" stroke="none" fill="black">$Revision: 1.5 $</text> |
| 94 |
</g> |
| 95 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000000"/> |
| 96 |
<!-- comment out this watermark once the test is approved --> |
| 97 |
<!--<g id="draft-watermark"> |
| 98 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 99 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 100 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 101 |
</g>--> |
| 102 |
</svg> |