Struct css::selectors::matching::LocalMatchingContext [] [src]

pub struct LocalMatchingContext<'a, 'b: 'a, Impl: SelectorImpl> {
    pub shared: &'a mut MatchingContext<'b>,
    pub selector: &'a Selector<Impl>,
    pub nesting_level: usize,
    pub hover_active_quirk_disabled: bool,
    // some fields omitted
}

Holds per-selector data alongside a pointer to MatchingContext.

Fields

Shared MatchingContext.

A reference to the base selector we're matching against.

The level of nesting for the selector being matched.

Holds a bool flag to see whether :active and :hover quirk should try to match or not. This flag can only be true in the case PseudoElements are encountered when matching mode is ForStatelessPseudoElement.

Methods

impl<'a, 'b, Impl> LocalMatchingContext<'a, 'b, Impl> where
    Impl: SelectorImpl
[src]

[src]

Constructs a new LocalMatchingContext.

[src]

Returns true if current compound selector matches :active and :hover quirk. https://quirks.spec.whatwg.org/#the-active-and-hover-quirk