Type Alias IntersectionRoot

Source
pub type IntersectionRoot = Option<ElementOrDocument<DomTypeHolder>>;
Expand description

The intersection root for an IntersectionObserver is the value of its root attribute if the attribute is non-null; otherwise, it is the top-level browsing context’s document node, referred to as the implicit root.

https://w3c.github.io/IntersectionObserver/#intersectionobserver-intersection-root

Aliased Type§

pub enum IntersectionRoot {
    None,
    Some(ElementOrDocument<DomTypeHolder>),
}

Variants§

§1.0.0

None

No value.

§1.0.0

Some(ElementOrDocument<DomTypeHolder>)

Some value of type T.