How to detect if CSS transforms are supported on SVG
If you're reading this, then apparently you already know that IE and Edge don’t support CSS transformations on SVG and neither apply CSS transitions. Moreover, SVG animations might not be an option, since Chrome deprecated SMIL in favor of CSS animations. How come? Probably you’re thinking now of using CSS when it’s available and falling back to SVG transform
attribute.
So how to check whether or not the browser supports CSS transforms on SVG elements? I came up with the following approach:
Which can be used later on: