<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
<svg version="1.1" baseProfile="full" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" id="svg-root" width="100%" height="100%" viewBox="0 0 480 360">
	<title id="test-title">markers.svg</title>
	<desc id="test-desc">Checks handling of closed (sub) paths in combination with start/middle/end markers and orientation</desc>
	<!--======================================================================-->
	<!--Content of Test Case follows...                  =====================-->
	<!--======================================================================-->
	<g id="test-body-content">
		<!-- ===================================================================== -->
		<!-- Define a few simple marker elements                                   -->
		<!-- ===================================================================== -->
		<marker id="markerStart" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth" orient="auto">
			<rect x="1" y="1" width="8" height="8" fill="red" stroke="none"/>
		</marker>
		<marker id="markerMiddle" viewBox="0 0 10 10" markerWidth="2" markerHeight="3" refX="5" refY="5" markerUnits="strokeWidth" orient="auto">
			<path d="M 3 0 L 5 10 L 7 0 z" fill="green" stroke="none"/>
		</marker>
		<marker id="markerEnd" viewBox="0 0 10 10" markerWidth="2" markerHeight="2" refX="5" refY="5" markerUnits="strokeWidth" orient="auto">
			<path d="M 5 0 L 10 10 L 0 10 Z" fill="blue" stroke="none"/>
		</marker>
		<!-- ===================================================================== -->
		<!-- Test one closed subpath                                               -->
		<!-- ===================================================================== -->
		<!-- The zero-length path segment created by the close path has the directionality of the end/start point of its previous/next neighbour!
				See http://www.w3.org/TR/SVG11/painting.html#OrientAttribute
				and http://www.w3.org/TR/SVG11/implnote.html#PathElementImplementationNotes
				for more information. -->
		<g transform="translate(82.5,40)">
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,0 l 50,0 l 0,50 z"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,95 l 50,0 l 0,50 l -50,-50 z"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,190 c 20,-20 30,-20 50,0 c 20,20 20,30 0,50 c -20,0 -50,-30 -50,-50 z"/>
		</g>
		<!-- ===================================================================== -->
		<!-- Test two subpaths, the second with an explicit moveto                 -->
		<!-- ===================================================================== -->
		<g transform="translate(215,40)">
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,0 l 50,0 l 0,50 z m 0,0 l 0,50"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,95 l 50,0 l 0,50 l -50,-50 z m 0,0 l 0,50"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,190 c 20,-20 30,-20 50,0 c 20,20 20,30 0,50 c -20,0 -50,-30 -50,-50 z m 0,0 l 0,50"/>
		</g>
		<!-- ===================================================================== -->
		<!-- Test two subpaths, the second with an implicit moveto                 -->
		<!-- ===================================================================== -->
		<!-- See http://www.w3.org/TR/SVG11/paths.html#PathDataClosePathCommand for information on how these paths should be read. -->
		<!-- And note that apparently the orientation and number of markers should be different for these paths!
		     See http://www.w3.org/TR/SVG11/painting.html#OrientAttribute -->
		<g transform="translate(347.5,40)">
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,0 l 50,0 l 0,50 z l 0,50"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,95 l 50,0 l 0,50 l -50,-50 z l 0,50"/>
			<path fill="none" stroke="black" stroke-width="8" marker-start="url(#markerStart)" marker-mid="url(#markerMiddle)" marker-end="url(#markerEnd)" d="M 0,190 c 20,-20 30,-20 50,0 c 20,20 20,30 0,50 c -20,0 -50,-30 -50,-50 z l 0,50"/>
		</g>
	</g>
</svg>
