viewportElement

The viewportElement property of the SVGElement interface represents the SVGElement which established the current viewport. Often the nearest ancestor element. null if the given element is the outermost element.

MDN Reference