Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
Returns the smallest bounding rectangle that encompasses this element's padding, scrollbar, and border.
Element.getBoundingClientRect from MDN.
The getBoundingClientRect() method from W3C.