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 ๐ RECOMMENDED_SELECTOR_BLOOM_FILTER_SIZE assigned_slot ๐ 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. 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