accessibility_rs/engine/styles/css_cache.rs
1/// build matching context
2pub fn build_matching_context<'a>(
3 nth_index_cache: &'a mut selectors::NthIndexCache,
4) -> selectors::matching::MatchingContext<'a, accessibility_scraper::selector::Simple> {
5 selectors::matching::MatchingContext::new(
6 selectors::matching::MatchingMode::Normal,
7 None,
8 Some(nth_index_cache),
9 selectors::matching::QuirksMode::NoQuirks,
10 )
11}