azul_core::style

Function selector_group_matches

Source
pub fn selector_group_matches(
    selectors: &[&CssPathSelector],
    html_node: &HtmlCascadeInfo,
    node_data: &NodeData,
) -> bool
Expand description

Matches a single group of items, panics on Children or DirectChildren selectors

The intent is to “split” the CSS path into groups by selectors, then store and cache whether the direct or any parent has matched the path correctly