createSVGRect

The createSVGRect() method of the SVGSVGElement interface creates an DOMRect object outside of any document trees.

MDN Reference