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 2019年3月.
rootBounds は IntersectionObserverEntry インターフェイスの読み取り専用のプロパティで、 DOMRectReadOnly であり、この target のルート耕作系に対応します。指定されていれば、 IntersectionObserver.rootMargin によるオフセットを含みます。
値
DOMRectReadOnly で、ルート交差矩形を表します。 Document のビューポートであるルートの場合、この矩形は文書全体の境界矩形となります。
そうでない場合は、ルート要素の境界となります。
この矩形のオフセットは IntersectionObserver.rootMargin の値で指定します。
仕様書
| Specification |
|---|
| Intersection Observer> # dom-intersectionobserverentry-rootbounds> |
ブラウザーの互換性
Loading…