wpt / svg / painting / reftests / marker-path-002.svg

Status: PASS | Duration: 13ms | Subtests: 1/1 | Open test on wpt.live | wpt.fyi

/svg/painting/reftests/marker-path-002.svg

<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>Markers on Path (Bezier).</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#Markers"/>
    <html:link rel="match"  href="marker-path-002-ref.svg" />
    <html:meta name="fuzzy" content="0-7;0-935" />
  </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-content" style="fill:none;stroke:black;stroke-width:2;marker-start:url(#Start);marker-mid:url(#Mid);marker-end:url(#End)">
    <path d="m 50,120  c 20,20 30,-20 50,0 c 20,20 30,-20 50,0 c 20,20 30,-20 50,0"/>
    <path d="m 50,150  c 20,20 30,-20 50,0 s       30,-20 50,0 s       30,-20 50,0"/>

    <path d="m 50,240  q 25,25 50,0  q 25,-25 50,0  q 25,25 50,0"/>
    <path d="m 50,270  q 25,25 50,0  t        50,0  t       50,0"/>

    <path d="M 290,120 C 310,140 320,100, 340,120 C 360,140 370,100 390,120 C 410,140 420,100 440,120"/>
    <path d="M 290,150 C 310,170 320,130, 340,150 S         370,130 390,150 S         420,130 440,150"/>

    <path d="M 290,240 Q 315,265 340,240  Q 365,215 390,240  Q 415,265 440,240"/>
    <path d="M 290,270 Q 315,295 340,270  T         390,270  T         440,270"/>
  </g>

</svg>