I have the following SVG:
I'd also consider using a plain old which provides the rx and ry attributes
rx
ry
MDN SVG docs <- note the second drawn rect element