IntersectionObserverEntry: rootBounds プロパティ

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2019.

IntersectionObserverEntry インターフェイスの読み取り専用の rootBounds プロパティは DOMRectReadOnly であり、この target のルート耕作系に対応します。指定されていれば、 IntersectionObserver.rootMargin によるオフセットを含みます。

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

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

仕様書

Specification
Intersection Observer
# dom-intersectionobserverentry-rootbounds

ブラウザーの互換性

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
rootBounds

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support