methodofaction/Method-Draw

Import svg with gradient: editor hangs up!

d9k opened this issue · 0 comments

d9k commented

Importing https://www.w3schools.com/graphics/tryit.asp?filename=trysvg_linear3

<svg height="150" width="400">
  <defs>
    <linearGradient id="grad1" x1="0%" y1="0%" x2="100%" y2="0%">
      <stop offset="0%" style="stop-color:rgb(255,255,0);stop-opacity:1" />
      <stop offset="100%" style="stop-color:rgb(255,0,0);stop-opacity:1" />
    </linearGradient>
  </defs>
  <ellipse cx="200" cy="70" rx="85" ry="55" fill="url(#grad1)" />
  <text fill="#ffffff" font-size="45" font-family="Verdana" x="150" y="86">SVG</text>
</svg>

https://gist.github.com/d9k/23bba624043205341e64bf22cf727d60

Editor just hangs up doing infinite calculations.

Interesting than GitHub can't display this svg either.

Inkscape displays image plain red without gradient.

Screenshot from 2021-02-11 15-37-00