| 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="[reviewer]" author="Microsoft" status="created" version="$Revision: 1.2 $" testname="$RCSfile: painting-marker-properties-01-f.svg,v $"> |
| 10 |
<d:testDescription xmlns="http://www.w3.org/1999/xhtml" href="http://dev.w3.org/SVG/profiles/1.1F2/publish/painting.html#MarkerProperties"> |
| 11 |
<p> |
| 12 |
<!--[[ |
| 13 |
'Marker-start', 'marker-mid', and 'marker-end' only render markers at the appropriate vertices when applied to 'line', 'path', 'polygon' and 'polyline' elements. |
| 14 |
]]--> |
| 15 |
</p> |
| 16 |
</d:testDescription> |
| 17 |
<d:operatorScript xmlns="http://www.w3.org/1999/xhtml"> |
| 18 |
<p> |
| 19 |
<!--[[ |
| 20 |
For each attribute ('marker-start', 'marker-mid', and 'marker-end'), create a top 'rect' and a bottom 'rect' that define where the marker |
| 21 |
'rect's should align. Create the 'line', 'path', 'polygon', and 'polyline' elements to render their markers between the top and bottom 'rect' |
| 22 |
elements such that an unbreaking line is formed. The 'line' element does not create a mid marker, so the top marker for the 'mid' column is |
| 23 |
larger than the rest. |
| 24 |
]]--> |
| 25 |
</p> |
| 26 |
</d:operatorScript> |
| 27 |
<d:passCriteria xmlns="http://www.w3.org/1999/xhtml"> |
| 28 |
<p> |
| 29 |
<!--[[ |
| 30 |
Test passes if there are three unbroken blue rectangles visible on the page. |
| 31 |
]]--> |
| 32 |
</p> |
| 33 |
</d:passCriteria> |
| 34 |
</d:SVGTestCase> |
| 35 |
<defs> |
| 36 |
<font-face |
| 37 |
font-family="SVGFreeSansASCII" |
| 38 |
unicode-range="U+0-7F"> |
| 39 |
<font-face-src> |
| 40 |
<font-face-uri xlink:href="../resources/SVGFreeSans.svg#ascii"/> |
| 41 |
</font-face-src> |
| 42 |
</font-face> |
| 43 |
</defs> |
| 44 |
<g id="test-body-content" font-family="SVGFreeSansASCII,sans-serif" font-size="18"> |
| 45 |
<style type="text/css"><![CDATA[ |
| 46 |
.start |
| 47 |
{ |
| 48 |
marker-start: url(#markerTest); |
| 49 |
} |
| 50 |
.end |
| 51 |
{ |
| 52 |
marker-end: url(#markerTest); |
| 53 |
} |
| 54 |
.mid |
| 55 |
{ |
| 56 |
marker-mid: url(#markerTest); |
| 57 |
}]]> |
| 58 |
</style> |
| 59 |
<defs> |
| 60 |
<marker id="markerTest" markerWidth="100" markerHeight="100" fill="blue"> |
| 61 |
<rect width="50" height="55" /> |
| 62 |
</marker> |
| 63 |
</defs> |
| 64 |
<rect width="50" height="55" fill="blue" /> |
| 65 |
<line class="start" y1="50" x2="100" y2="50" stroke="none" /> |
| 66 |
<path class="start" d="M 0 100 L 50 100 L 100 100" /> |
| 67 |
<polygon class="start" points="0,150 50,150 100,150" /> |
| 68 |
<polyline class="start" points="0,200 50,200 100,200" /> |
| 69 |
<rect y="250" width="50" height="50" fill="blue" /> |
| 70 |
|
| 71 |
<rect x="250" width="50" height="55" fill="blue" /> |
| 72 |
<line class="end" x1="150" y1="50" x2="250" y2="50" stroke="none" /> |
| 73 |
<path class="end" d="M 150 100 L 200 100 L 250 100" /> |
| 74 |
<polygon class="end" points="250,150 200,150" /> |
| 75 |
<polyline class="end" points="150,200 200,200 250,200" /> |
| 76 |
<rect x="250" y="250" width="50" height="50" fill="blue" /> |
| 77 |
|
| 78 |
<rect x="350" width="50" height="105" fill="blue" /> |
| 79 |
<path class="mid" d="M 300 100 L 350 100 L 400 100" /> |
| 80 |
<polygon class="mid" points="300,150 350,150" /> |
| 81 |
<polyline class="mid" points="300,200 350,200 400,200" /> |
| 82 |
<rect x="350" y="250" width="50" height="50" fill="blue" /> |
| 83 |
</g> |
| 84 |
<g font-family="SVGFreeSansASCII,sans-serif" font-size="32"> |
| 85 |
<text id="revision" x="10" y="340" stroke="none" |
| 86 |
fill="black">$Revision: 1.2 $</text> |
| 87 |
</g> |
| 88 |
<rect id="test-frame" x="1" y="1" width="478" height="358" fill="none" stroke="#000"/> |
| 89 |
<!-- comment out this watermark once the test is approved --> |
| 90 |
<g id="draft-watermark"> |
| 91 |
<rect x="1" y="1" width="478" height="20" fill="red" stroke="black" stroke-width="1"/> |
| 92 |
<text font-family="SVGFreeSansASCII,sans-serif" font-weight="bold" font-size="20" x="240" |
| 93 |
text-anchor="middle" y="18" stroke-width="0.5" stroke="black" fill="white">DRAFT</text> |
| 94 |
</g> |
| 95 |
</svg> |