| <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" |
| xmlns:html="http://www.w3.org/1999/xhtml"> |
| <g id="testmeta"> |
| <title>Paint: 'paint-order'</title> |
| <html:link rel="author" |
| title="Tavmjong Bah" |
| href="http://tavmjong.free.fr"/> |
| <html:link rel="help" |
| href="https://www.w3.org/TR/SVG2/painting.html#PaintOrder"/> |
| <html:link rel="match" href="paint-order-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; |
| } |
| </style> |
| |
| <defs> |
| <rect id="rectangle" width="2" height="2" style="fill:blue" /> |
| <marker id="marker" style="overflow:visible" markerWidth="2" markerHeight="2" orient="auto" viewBox="0 0 2 2" refX="1" refY="1"> |
| <use xlink:href="#rectangle"/> |
| </marker> |
| <path id="path" d="m -25,-25 0,50 50,0 0,-50 z"/> |
| </defs> |
| |
| <g id="test-body-content" font-size="16" style="fill:lavender;stroke:green;stroke-width:5px;marker:url(#marker)"> |
| <use xlink:href="#path" transform="translate(120,120)" style="" /> |
| <use xlink:href="#path" transform="translate(240,120)" style="paint-order:normal" /> |
| <use xlink:href="#path" transform="translate(360,120)" style="paint-order:fill stroke markers" /> |
| <use xlink:href="#path" transform="translate(120,220)" style="paint-order:fill" /> |
| <use xlink:href="#path" transform="translate(240,220)" style="paint-order:stroke" /> |
| <use xlink:href="#path" transform="translate(360,220)" style="paint-order:markers" /> |
| <use xlink:href="#path" transform="translate(120,320)" style="paint-order:fill stroke" /> |
| <use xlink:href="#path" transform="translate(240,320)" style="paint-order:stroke markers" /> |
| <use xlink:href="#path" transform="translate(360,320)" style="paint-order:markers fill" /> |
| </g> |
| |
| </svg> |