IntersectionObserverEntry.rootBounds

IntersectionObserverEntry インターフェイスの読み取り専用の rootBounds プロパティは DOMRectReadOnly のルート交差矩形に対応し、 target が指定されていればそれによるオフセットを含む IntersectionObserver.rootMargin です。

DOMRectReadOnly で、ルート交差矩形を表します。 Document のビューポートであるルートの場合、この矩形は文書全体の境界矩形となります。そうでない場合は、ルート要素の境界となります。

この矩形のオフセットは IntersectionObserver.rootMargin の値で指定します。

仕様書

Specification
Intersection Observer
# dom-intersectionobserverentry-rootbounds

ブラウザーの互換性

BCD tables only load in the browser