if the element is SVG, reset width and height.