MDN self-hosted library · e01.org

SVGSVGElement: createSVGRect() method

SVG

no runnable cells web-api-instance-method upstream source

SVG

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

Syntax

createSVGRect()

Parameters

None.

Return value

A DOMRect object, initialized with x, y, width, and height all set to 0.

Specifications

Browser compatibility

See also

  • DOMRect