Skip to main content

hit_dom_path

Function hit_dom_path 

Source
pub fn hit_dom_path(path: &HitPath<'_>) -> Vec<u32>
Expand description

Returns the root-to-target DOM node id path for the hit, if any.

The path is derived from the hit path (innermost first) and contains every DOM-backed node id from root to the hit target, preserving ancestor propagation for pseudo-classes such as :hover and :active.