Source code

Revision control

Copy as Markdown

Other Tools

Test Info:

SVG Preview (Scaled)

Preview of https://hg.mozilla.org/mozilla-central/raw-file/tip/testing/web-platform/tests/svg/painting/reftests/markers-orient-001.svg
<svg id="svg-root"
width="100%" height="100%" viewBox="0 0 480 360"
<g id="testmeta">
<title>Marker: 'orient'</title>
<html:link rel="author"
title="Tavmjong Bah"
<html:link rel="help"
<html:link rel="match" href="markers-orient-001-ref.svg" />
</g>
<style id="test-font" type="text/css">
/* Standard Font (if needed). */
@font-face {
font-family: FreeSans;
src: url("../fonts/FreeSans.woff") format("woff");
}
text {
font-family: FreeSans, sans-serif;
text-anchor: middle;
fill: black;
}
#title {
font-size: 24px;
}
.label {
font-size: 18px;
}
#reference {
display: none;
}
</style>
<defs>
<path id="triangle" d="m 0,0 0,-2.5 10,2.5 -10,2.5 z"/>
<marker id="OrientAuto" style="overflow:visible" markerWidth="5" markerHeight="10">
<use xlink:href="#triangle"/>
</marker>
<marker id="OrientFixed" style="overflow:visible" markerWidth="5" markerHeight="10" orient="45">
<use xlink:href="#triangle"/>
</marker>
<marker id="OrientAutoReverse" style="overflow:visible" markerWidth="5" markerHeight="10" orient="auto-start-reverse">
<use xlink:href="#triangle"/>
</marker>
</defs>
<g id="reference" style="fill:red">
<use xlink:href="#triangle" transform="translate(120,120) scale(4,4)"/>
<use xlink:href="#triangle" transform="translate(240,120) scale(4,4)"/>
<use xlink:href="#triangle" transform="translate(360,120) scale(4,4)"/>
<use xlink:href="#triangle" transform="translate(120,220) scale(4,4) rotate(45)"/>
<use xlink:href="#triangle" transform="translate(240,220) scale(4,4) rotate(45)"/>
<use xlink:href="#triangle" transform="translate(360,220) scale(4,4) rotate(45)"/>
<use xlink:href="#triangle" transform="translate(120,320) scale(4,4) rotate(180)"/>
<use xlink:href="#triangle" transform="translate(240,320) scale(4,4)"/>
<use xlink:href="#triangle" transform="translate(360,320) scale(4,4)"/>
</g>
<g id="test-body-content" font-size="16">
<path d="m 120,120 120,0 120,0" style="stroke:black;stroke-width:4px;marker:url(#OrientAuto)"/>
<path d="m 120,220 120,0 120,0" style="stroke:black;stroke-width:4px;marker:url(#OrientFixed)"/>
<path d="m 120,320 120,0 120,0" style="stroke:black;stroke-width:4px;marker:url(#OrientAutoReverse)"/>
</g>
</svg>