Note: This feature is available in Web Workers.
The DOMRect() constructor creates a new DOMRect object.
new DOMRect(x, y, width, height)xThe x coordinate of the DOMRect's origin.
yThe y coordinate of the DOMRect's origin.
widthThe width of the DOMRect.
heightThe height of the DOMRect.
A new DOMRect object.