azul_core::style

Function matches_html_element

Source
pub fn matches_html_element(
    css_path: &CssPath,
    node_id: NodeId,
    node_hierarchy: &NodeHierarchy,
    node_data: &NodeDataContainer<NodeData>,
    html_node_tree: &NodeDataContainer<HtmlCascadeInfo>,
) -> bool
Expand description

Returns if the style CSS path matches the DOM node (i.e. if the DOM node should be styled by that element)