The fromRect() static method of the DOMRect object creates a new DOMRect object with a given location and dimensions.
fromRect()
DOMRect