Skip to main content Module matching Copy item path Source pub use crate::context ::*;ElementSelectorFlags Set of flags that are set on either the element or its parent (depending
on the flag) if the element could potentially match a selector. LocalMatchingContext π Holds per-compound-selector data. NextElement π CompoundSelectorMatchingResult Whether a compound selector matched, and whether it was the rightmost
selector inside the complex selector. SelectorMatchingResult π A result of selector matching, includes 3 failure types, SubjectOrPseudoElement Whether weβre matching either the subject, or the pseudo-element. RECOMMENDED_SELECTOR_BLOOM_FILTER_SIZE assigned_slot π complex_selector_early_reject_by_local_name π compound_matches_featureless_host π There are relatively few selectors in a given compound that may match a featureless element.
Instead of adding a check to every selector that may not match, we handle it here in an out of
line path. do_match_relative_selectors π Matches a relative selector in a list of relative selectors. early_reject_by_local_name Returns true if this compound would not match the given element by due
to a local name selector (If one exists). host_for_part π hover_and_active_quirk_applies π Whether the :hover and :active quirk applies. match_relative_selectors π matches_complex_selector Matches a complex selector. matches_complex_selector_internal π matches_complex_selector_list π Matches each selector of a list as a complex selector matches_compound_selector π Determines whether the given element matches the given compound selector. matches_compound_selector_from Matches a compound selector belonging to selector, starting at offset
from_offset, matching left to right. matches_generic_nth_child π matches_host π matches_local_name π matches_part π matches_rare_attribute_selector π matches_relative_selector π matches_relative_selector_subtree π matches_selector Matches a selector, fast-rejecting against a bloom filter. matches_selector_kleene Same as matches_selector, but returns the Kleene value as-is. matches_selector_list matches_simple_selector π Determines whether the given element matches the given single selector. matches_slotted π next_element_for_combinator π nth_child_index π relative_selector_match_early π select_name selector_may_match Given the ancestor hashes from a selector, see if the current element,
represented by the bloom filter, has a chance of matching at all. to_unconditional_case_sensitivity