root property

[Some information relates to pre-released product which may be substantially modified before it's commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.]

The root element to use for intersection.

This property is read-only.

Syntax

JavaScript
root = object.root

 

Property values

Type: Element

The root element to use for intersection.

Remarks

Default is null. If null, use the implicit root.

See also

IntersectionObserver