Trait selectors::parser::PseudoElement
source · pub trait PseudoElement: Sized + ToCss {
type Impl: SelectorImpl;
// Provided methods
fn accepts_state_pseudo_classes(&self) -> bool { ... }
fn valid_after_slotted(&self) -> bool { ... }
fn specificity_count(&self) -> u32 { ... }
fn is_in_pseudo_element_tree(&self) -> bool { ... }
}
Expand description
A trait that represents a pseudo-element.
Required Associated Types§
sourcetype Impl: SelectorImpl
type Impl: SelectorImpl
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.
sourcefn specificity_count(&self) -> u32
fn specificity_count(&self) -> u32
The count we contribute to the specificity from this pseudo-element.
sourcefn is_in_pseudo_element_tree(&self) -> bool
fn is_in_pseudo_element_tree(&self) -> bool
Whether this pseudo-element is in a pseudo-element tree (excluding the pseudo-element root). https://drafts.csswg.org/css-view-transitions-1/#pseudo-root
Object Safety§
This trait is not object safe.