IntersectionObserverEntry:rootBounds 属性
rootBounds
是 IntersectionObserverEntry
接口的一个只读属性,它返回一个 DOMRectReadOnly
对象,对应于 target
的根交叉矩形,如果指定了 IntersectionObserver.rootMargin
,则会对其进行偏移。
值
一个 DOMRectReadOnly
,描述了根交叉矩形。对于作为 Document
视口的根元素,此矩形是整个文档的边界矩形。否则,它是根元素的边界。
此矩形会根据 IntersectionObserver.rootMargin
中的值进行偏移。
规范
规范 |
---|
交集观察器 # dom-intersectionobserverentry-rootbounds |
浏览器兼容性
加载中…