Trait parcel_selectors::parser::PseudoElement
source · pub trait PseudoElement<'i>: Sized + ToCss {
type Impl: SelectorImpl<'i>;
fn accepts_state_pseudo_classes(&self) -> bool { ... }
fn valid_after_slotted(&self) -> bool { ... }
fn is_webkit_scrollbar(&self) -> bool { ... }
}
Expand description
A trait that represents a pseudo-element.
Required Associated Types§
sourcetype Impl: SelectorImpl<'i>
type Impl: SelectorImpl<'i>
The SelectorImpl
this pseudo-element is used for.
Provided Methods§
sourcefn accepts_state_pseudo_classes(&self) -> bool
fn accepts_state_pseudo_classes(&self) -> bool
Whether the pseudo-element supports a given state selector to the right of it.
sourcefn valid_after_slotted(&self) -> bool
fn valid_after_slotted(&self) -> bool
Whether this pseudo-element is valid after a ::slotted(..) pseudo.