Trait parcel_selectors::parser::NonTSPseudoClass
source · pub trait NonTSPseudoClass<'i>: Sized + ToCss {
type Impl: SelectorImpl<'i>;
fn is_active_or_hover(&self) -> bool;
fn is_user_action_state(&self) -> bool;
fn is_valid_before_webkit_scrollbar(&self) -> bool { ... }
fn is_valid_after_webkit_scrollbar(&self) -> bool { ... }
fn visit<V>(&self, _visitor: &mut V) -> bool
where
V: SelectorVisitor<'i, Impl = Self::Impl>,
{ ... }
}
Expand description
A trait that represents a pseudo-class.
Required Associated Types§
sourcetype Impl: SelectorImpl<'i>
type Impl: SelectorImpl<'i>
The SelectorImpl
this pseudo-element is used for.
Required Methods§
sourcefn is_active_or_hover(&self) -> bool
fn is_active_or_hover(&self) -> bool
Whether this pseudo-class is :active or :hover.
sourcefn is_user_action_state(&self) -> bool
fn is_user_action_state(&self) -> bool
Whether this pseudo-class belongs to:
https://drafts.csswg.org/selectors-4/#useraction-pseudos