bounding box

The smallest rectangle that encloses a shape or element, given by its position and size or by two opposite corners.

In more detail

Its edges are the smallest and largest x and y values the shape reaches. In a web page, element.getBoundingClientRect() returns an element's box as top, left, width and height relative to the viewport, and positioning code uses it to place floating elements such as tooltips. Graphics libraries often define ovals and other shapes by their bounding box.

Related terms

Taught in

References