Enum lightningcss::selector::PseudoClass
source · pub enum PseudoClass<'i> {
Show 48 variants
Lang {
languages: Vec<CowArcStr<'i>>,
},
Dir {
direction: Direction,
},
Hover,
Active,
Focus,
FocusVisible,
FocusWithin,
Current,
Past,
Future,
Playing,
Paused,
Seeking,
Buffering,
Stalled,
Muted,
VolumeLocked,
Fullscreen(VendorPrefix),
Defined,
AnyLink(VendorPrefix),
Link,
LocalLink,
Target,
TargetWithin,
Visited,
Enabled,
Disabled,
ReadOnly(VendorPrefix),
ReadWrite(VendorPrefix),
PlaceholderShown(VendorPrefix),
Default,
Checked,
Indeterminate,
Blank,
Valid,
Invalid,
InRange,
OutOfRange,
Required,
Optional,
UserValid,
UserInvalid,
Autofill(VendorPrefix),
Local {
selector: Box<Selector<'i>>,
},
Global {
selector: Box<Selector<'i>>,
},
WebKitScrollbar(WebKitScrollbarPseudoClass),
Custom {
name: CowArcStr<'i>,
},
CustomFunction {
name: CowArcStr<'i>,
arguments: TokenList<'i>,
},
}
Expand description
A pseudo class.
Variants§
Lang
The :lang() pseudo class.
Dir
The :dir() pseudo class.
Hover
The :hover pseudo class.
Active
The :active pseudo class.
Focus
The :focus pseudo class.
FocusVisible
The :focus-visible pseudo class.
FocusWithin
The :focus-within pseudo class.
Current
The :current pseudo class.
Past
The :past pseudo class.
Future
The :future pseudo class.
Playing
The :playing pseudo class.
Paused
The :paused pseudo class.
Seeking
The :seeking pseudo class.
Buffering
The :buffering pseudo class.
Stalled
The :stalled pseudo class.
Muted
The :muted pseudo class.
VolumeLocked
The :volume-locked pseudo class.
Fullscreen(VendorPrefix)
The :fullscreen pseudo class.
Defined
The :defined pseudo class.
AnyLink(VendorPrefix)
The :any-link pseudo class.
Link
The :link pseudo class.
LocalLink
The :local-link pseudo class.
Target
The :target pseudo class.
TargetWithin
The :target-within pseudo class.
Visited
The :visited pseudo class.
Enabled
The :enabled pseudo class.
Disabled
The :disabled pseudo class.
ReadOnly(VendorPrefix)
The :read-only pseudo class.
ReadWrite(VendorPrefix)
The :read-write pseudo class.
PlaceholderShown(VendorPrefix)
The :placeholder-shown pseudo class.
Default
The :default pseudo class.
Checked
The :checked pseudo class.
Indeterminate
The :indeterminate pseudo class.
Blank
The :blank pseudo class.
Valid
The :valid pseudo class.
Invalid
The :invalid pseudo class.
InRange
The :in-range pseudo class.
OutOfRange
The :out-of-range pseudo class.
Required
The :required pseudo class.
Optional
The :optional pseudo class.
UserValid
The :user-valid pseudo class.
UserInvalid
The :used-invalid pseudo class.
Autofill(VendorPrefix)
The :autofill pseudo class.
Local
The CSS modules :local() pseudo class.
Global
The CSS modules :global() pseudo class.
WebKitScrollbar(WebKitScrollbarPseudoClass)
A webkit scrollbar pseudo class.
Custom
An unknown pseudo class.
CustomFunction
Fields
An unknown functional pseudo class.
Trait Implementations§
source§impl<'i> Clone for PseudoClass<'i>
impl<'i> Clone for PseudoClass<'i>
source§fn clone(&self) -> PseudoClass<'i>
fn clone(&self) -> PseudoClass<'i>
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl<'de: 'i, 'i> Deserialize<'de> for PseudoClass<'i>
impl<'de: 'i, 'i> Deserialize<'de> for PseudoClass<'i>
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl<'i> JsonSchema for PseudoClass<'i>
impl<'i> JsonSchema for PseudoClass<'i>
source§fn schema_name() -> String
fn schema_name() -> String
source§fn json_schema(gen: &mut SchemaGenerator) -> Schema
fn json_schema(gen: &mut SchemaGenerator) -> Schema
source§fn is_referenceable() -> bool
fn is_referenceable() -> bool
$ref
keyword. Read moresource§impl<'i> NonTSPseudoClass<'i> for PseudoClass<'i>
impl<'i> NonTSPseudoClass<'i> for PseudoClass<'i>
source§fn is_active_or_hover(&self) -> bool
fn is_active_or_hover(&self) -> bool
source§fn is_user_action_state(&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) -> boolwhere V: SelectorVisitor<'i, Impl = Self::Impl>,
source§impl<'i> PartialEq<PseudoClass<'i>> for PseudoClass<'i>
impl<'i> PartialEq<PseudoClass<'i>> for PseudoClass<'i>
source§fn eq(&self, other: &PseudoClass<'i>) -> bool
fn eq(&self, other: &PseudoClass<'i>) -> bool
self
and other
values to be equal, and is used
by ==
.