Skip to main content
Question

figma.createNodeFromSvg can not create linearGradient with percetange x1

  • March 23, 2023
  • 0 replies
  • 381 views

Semi_Design_UED-MED

When I create svg nodes in figma.createNodeFromSvg, two different style nodes were create. However, these svgs have same style in browser.

The only code diff were linearGradient x1,y1,x2,y2 as fellow image.

It seems like Figma can not handle percentage type linearGradient right?

  • linearGradient with percentage type x1,x2,y1y2 in browser

  • linearGradient with number type x1,x2,y1y2 in browser

This topic has been closed for replies.