Check if the parent is an SVG element