SVGSVGElement: createSVGRect() method

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

Syntax

js
createSVGRect()

Parameters

None.

Return value

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

Specifications

See also