Skip to content

transform attribute on <svg> element doesn't work

  • open Inkscape
  • insert an <svg> element anywhere it is allowed by the SVG standard (such as in the root <svg>)
  • set a transform attribute such as translate(50,50).
  • put something renderable into it such as a <rect> and give it a size

What happened?

The transform attribute doesn't have any effect. Chrome has this same bug but Firefox hasn't. I filed a bug report for Chrome. If we fix this in Inkscape too we may set the tone for others to follow. I'm not sure if it is part of SVG standard, but it would be incredibly useful to be able to transform an <svg> element. See #1077 for why a <g> element can not replace <svg>.

What should have happened?

The <svg> element should've moved according to its transform attribute.

Inkscape Version and Operating System:

  • Inkscape Version: 1.0beta1
  • Operating System: Windows
  • Operating System version: 7, 32-bit
Edited by Arundel
To upload designs, you'll need to enable LFS and have an admin enable hashed storage. More information