Source code

Revision control

Copy as Markdown

Other Tools

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/painting/reftests/marker-path-013-ref.svg
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
<g id="testmeta">
<title>Markers on Sub-Path (Arc).</title>
<html:link rel="author"
title="Tavmjong Bah"
</g>
<defs>
<marker id="Start"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="green">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
<marker id="Mid"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="orange">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
<marker id="End"
viewBox="0 0 10 10" refX="0" refY="5"
markerUnits="strokeWidth"
markerWidth="12"
markerHeight="9"
orient="auto"
fill="blue">
<path d="M 0 0 L 10 5 L 0 10 z"/>
</marker>
</defs>
<g id="test-body-reference" style="fill:none;stroke:black;stroke-width:2">
<path d="m 50,120 a 30,20 90 0 0 50,0 m 50,0 a 30,20 90 0 0 50,0"/>
<path d="m 50,240 a 30,20 90 0 1 50,0 m 50,0 a 30,20 90 0 1 50,0"/>
<path d="M 290,120 A 30,20 90 0 0 340,120 M 390,120 A 30,20 90 0 0 440,120"/>
<path d="M 290,240 A 30,20 90 0 1 340,240 M 390,240 A 30,20 90 0 1 440,240"/>
<g id="down">
<path d="m 50,120 0, 20" style="stroke:none;marker-start:url(#Start)"/>
<path d="m 100,120 0,-20" style="stroke:none;marker-start:url(#Mid)"/>
<path d="m 150,120 0, 20" style="stroke:none;marker-start:url(#Mid)"/>
<path d="m 200,120 0,-20" style="stroke:none;marker-start:url(#End)"/>
</g>
<use xlink:href="#down" transform="translate(240, 0)"/>
<g id="up">
<path d="m 50,240 0,-20" style="stroke:none;marker-start:url(#Start)"/>
<path d="m 100,240 0, 20" style="stroke:none;marker-start:url(#Mid)"/>
<path d="m 150,240 0,-20" style="stroke:none;marker-start:url(#Mid)"/>
<path d="m 200,240 0, 20" style="stroke:none;marker-start:url(#End)"/>
</g>
<use xlink:href="#up" transform="translate(240, 0)"/>
</g>
</svg>