summaryrefslogtreecommitdiffstats
path: root/testing/web-platform/tests/svg/path/property/marker-path.svg
blob: c03e9c515c478dc6c46521b0867ec714d55e13e9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
<?xml version="1.0" encoding="UTF-8"?>
<svg xmlns="http://www.w3.org/2000/svg"
     xmlns:h="http://www.w3.org/1999/xhtml" width="300" height="300">
  <metadata>
    <h:link rel="help" href="https://svgwg.org/svg2-draft/paths.html#TheDProperty"/>
    <h:link rel="match" href="marker-path-ref.svg"/>
    <h:meta name="assert" content="d property is used for SVG markers."/>
  </metadata>
  <defs>
    <marker id="Start"
            viewBox="0 0 10 10" refX="0" refY="5"
            markerUnits="strokeWidth"
            markerWidth="10"
            markerHeight="10"
            orient="auto"
            overflow="visible"
            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="10"
            markerHeight="10"
            orient="auto"
            overflow="visible"
            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="10"
            markerHeight="10"
            orient="auto"
            overflow="visible"
            fill="blue">
      <path d="M 0 0 L 10 5 L 0 10 z"/>
    </marker>
  </defs>

  <g style="fill:none;stroke:black;stroke-width:2;marker-start:url(#Start);marker-mid:url(#Mid);marker-end:url(#End)">
    <path style='d: path("M 50,50  l 50,0  l 50,0   l 50,0");'/>
    <path style='d: path("M 50,100 l 50,20 l 50,-20 l 50,20");'/>
    <path style='d: path("M 50,150 h 50 v 50 h 50");'/>
  </g>
</svg>