getClientRects method
The getClientRects()
method of the Element
interface returns a collection of DOMRect objects that indicate the
bounding rectangles for each
CSS border box
in a client.
Most elements only have one border box each, but a multiline
inline-level element
(such as a multiline
span
element, by default) has a border box around each line.
Implementation
external DOMRectList getClientRects();