google / forma

An efficient vector-graphics renderer
Apache License 2.0
2.62k stars 51 forks source link

SVG linearGradient `stop missing gradient start tag` error #40

Closed yisibl closed 1 year ago

yisibl commented 1 year ago
<svg
  viewBox="0 0 10 10"
  xmlns="http://www.w3.org/2000/svg"
  xmlns:xlink="http://www.w3.org/1999/xlink">
  <defs>
    <linearGradient id="myGradient" gradientTransform="rotate(90)">
      <stop offset="0%" stop-color="gold" />
      <stop offset="58%" stop-color="red" />
    </linearGradient>
  </defs>

  <circle cx="5" cy="5" r="4" fill="url('#myGradient')" />
</svg>
thread 'main' panicked at 'stop missing gradient start tag', demo/src/demos/svg.rs:847:49
dragostis commented 1 year ago

Closing in favor of #39.