Firefox Tomorrow

web api instance property

IntersectionObserverEntry: rootBounds property

View on MDN ↗

The rootBounds read-only property of the IntersectionObserverEntry interface is a DOMRectReadOnly corresponding to the target’s root intersection rectangle, offset by the rootMargin if one is specified.

Value

A DOMRectReadOnly which describes the root intersection rectangle. For roots which are the Document’s viewport, this rectangle is the bounds rectangle of the entire document. Otherwise, it’s the bounds of the root element.

This rectangle is offset by the values in rootMargin.

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.