| 1 |
<svg id="svg-root" width="100%" height="100%" viewBox="0 0 480 360" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> |
| 2 |
<!--======================================================================--> |
| 3 |
<!--= Copyright 2008 World Wide Web Consortium, (Massachusetts =--> |
| 4 |
<!--= Institute of Technology, European Research Consortium for =--> |
| 5 |
<!--= Informatics and Mathematics (ERCIM), Keio University). =--> |
| 6 |
<!--= All Rights Reserved. =--> |
| 7 |
<!--= See http://www.w3.org/Consortium/Legal/. =--> |
| 8 |
<!--======================================================================--> |
| 9 |
<d:SVGTestCase xmlns:d="http://www.w3.org/2000/02/svg/testsuite/description/" template-version="1.4" reviewer="CL" author="Microsoft" status="accepted" version="$Revision: 1.4 $" testname="$RCSfile: linking-a-10-f.svg,v $"> |
| 10 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/linking.html#AElement"> |
| 11 |
<p> |
| 12 |
Test that the 'a' element supports various types of graphics and container elements as content. |
| 13 |
</p> |
| 14 |
</d:testDescription> |
| 15 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 16 |
<p>Run the test. No interaction required.</p> |
| 17 |
</d:operatorScript> |
| 18 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 19 |
<p> |
| 20 |
Test passes if there are fourteen blue shapes on the page, in the sizes and positions |
| 21 |
shown in the reference image. |
| 22 |
</p> |
| 23 |
</d:passCriteria> |
| 24 |
</d:SVGTestCase> |
| 25 |
<title id="test-title">$RCSfile: linking-a-10-f.svg,v $</title> |
| 26 |
<defs> |
| 27 |
<font-face |
| 28 |
font-family="SVGFreeSansASCII" |
| 29 |
unicode-range="U+0-7F"> |
| 30 |
<font-face-src> |
| 31 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 32 |
</font-face-src> |
| 33 |
</font-face> |
| 34 |
</defs> |
| 35 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 36 |
<a> |
| 37 |
<rect x="360" width="100" height="100" fill="blue" /> |
| 38 |
<ellipse cx="120" cy="290" rx="25" ry="50" fill="blue" /> |
| 39 |
<line x1="380" y1="250" x2="320" y2="340" stroke-width="5" stroke="blue" /> |
| 40 |
<polygon fill="blue" points="0,0 0,100 100,100 100,0" /> |
| 41 |
<path d="M 280 250 L 250 350 L 310 330 z" fill="blue" /> |
| 42 |
<text x="10" y="320" font-size="100" fill="blue">X</text> |
| 43 |
<image xlink:href="../images/blue_10x10.png" x="360" y="120" width="100" height="100" /> |
| 44 |
<g> |
| 45 |
<rect x="240" y="120" width="100" height="100" fill="blue" /> |
| 46 |
</g> |
| 47 |
<svg> |
| 48 |
<rect y="120" width="100" height="100" fill="blue" /> |
| 49 |
</svg> |
| 50 |
<defs> |
| 51 |
<rect width="100" height="100" fill="blue" id="testRect" /> |
| 52 |
<linearGradient id="testGradient"> |
| 53 |
<stop offset="1" stop-color="blue" /> |
| 54 |
</linearGradient> |
| 55 |
<symbol id="testSymbol"> |
| 56 |
<circle cx="40" cy="40" r="40" fill="blue" /> |
| 57 |
</symbol> |
| 58 |
<marker id="testMarker"> |
| 59 |
<rect width="100" height="100" fill="blue" /> |
| 60 |
</marker> |
| 61 |
<pattern id="testPattern" width="100" height="100" patternUnits="userSpaceOnUse" viewBox="0 0 100 100"> |
| 62 |
<rect width="100" height="100" fill="blue" /> |
| 63 |
</pattern> |
| 64 |
</defs> |
| 65 |
<use xlink:href="#testRect" x="120" /> |
| 66 |
<rect fill="url(#testGradient)" x="120" y="120" width="100" height="100" /> |
| 67 |
<use x="390" y="250" xlink:href="#testSymbol" /> |
| 68 |
<line x1="150" y1="260" x2="165" y2="260" stroke-width="25" marker-end="url(#testMarker)" /> |
| 69 |
<rect fill="url(#testPattern)" x="240" width="100" height="100" /> |
| 70 |
</a> |
| 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.4 $</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> |