pub enum NonTreeStructuralPseudoClass {
Show 71 variants
active,
any(Option<VendorPrefix>, DeduplicatedSelectors),
any_link(Option<VendorPrefix>),
checked,
default,
dir(Option<VendorPrefix>, TextDirectionality),
disabled,
enabled,
first,
focus,
focus_within,
in_range,
invalid,
is(DeduplicatedSelectors),
fullscreen(Option<VendorPrefix>),
hover,
indeterminate,
lang(LanguageRanges),
left,
link,
optional,
out_of_range,
placeholder_shown(Option<VendorPrefix>),
read_only(Option<VendorPrefix>),
read_write(Option<VendorPrefix>),
required,
right,
target,
valid,
visited,
where_(DeduplicatedSelectors),
case_sensitive_type_attr(Option<VendorPrefix>, Atom),
non_zero_border(Option<VendorPrefix>),
broken(Option<VendorPrefix>),
drag_over(Option<VendorPrefix>),
first_node(Option<VendorPrefix>),
focusring(Option<VendorPrefix>),
full_screen_ancestor(Option<VendorPrefix>),
handler_blocked(Option<VendorPrefix>),
handler_crashed(Option<VendorPrefix>),
handler_disabled(Option<VendorPrefix>),
last_node(Option<VendorPrefix>),
list_bullet(Option<VendorPrefix>),
list_number(Option<VendorPrefix>),
loading(Option<VendorPrefix>),
locale_dir(Option<VendorPrefix>, TextDirectionality),
lwtheme(Option<VendorPrefix>),
lwtheme_brighttext(Option<VendorPrefix>),
lwtheme_darktext(Option<VendorPrefix>),
native_anonymous(Option<VendorPrefix>),
only_whitespace(Option<VendorPrefix>),
submit_invalid(Option<VendorPrefix>),
suppressed(Option<VendorPrefix>),
system_metric(Option<VendorPrefix>, SystemMetric),
tree_cell(Option<VendorPrefix>),
tree_cell_text(Option<VendorPrefix>, TreeHover),
tree_checkbox(Option<VendorPrefix>),
tree_column(Option<VendorPrefix>),
tree_drop_feedback(Option<VendorPrefix>),
tree_image(Option<VendorPrefix>),
tree_indentation(Option<VendorPrefix>),
tree_line(Option<VendorPrefix>),
tree_progressmeter(Option<VendorPrefix>),
tree_row(Option<VendorPrefix>, TreeHover),
tree_separator(Option<VendorPrefix>),
tree_twisty(Option<VendorPrefix>),
ui_invalid(Option<VendorPrefix>),
ui_valid(Option<VendorPrefix>),
user_disabled(Option<VendorPrefix>),
window_inactive(Option<VendorPrefix>),
autofill(Option<VendorPrefix>),
}
Expand description
A non tree-structural pseudo-class. See https://drafts.csswg.org/selectors-4/#structural-pseudos
Variants§
active
any(Option<VendorPrefix>, DeduplicatedSelectors)
any_link(Option<VendorPrefix>)
checked
default
dir(Option<VendorPrefix>, TextDirectionality)
disabled
enabled
first
Only valid in @page
focus
focus_within
in_range
invalid
is(DeduplicatedSelectors)
fullscreen(Option<VendorPrefix>)
hover
indeterminate
lang(LanguageRanges)
left
Only valid in @page
link
optional
out_of_range
placeholder_shown(Option<VendorPrefix>)
The obsolete (as of Firefox 51) :-moz-placeholder
is re-written when parsed as this.
read_only(Option<VendorPrefix>)
read_write(Option<VendorPrefix>)
required
right
Only valid in @page
target
valid
visited
where_(DeduplicatedSelectors)
case_sensitive_type_attr(Option<VendorPrefix>, Atom)
-servo- only
non_zero_border(Option<VendorPrefix>)
-servo- only
broken(Option<VendorPrefix>)
-moz- only
drag_over(Option<VendorPrefix>)
-moz- only
first_node(Option<VendorPrefix>)
-moz- only
focusring(Option<VendorPrefix>)
-moz- only
full_screen_ancestor(Option<VendorPrefix>)
-moz- only
handler_blocked(Option<VendorPrefix>)
-moz- only
handler_crashed(Option<VendorPrefix>)
-moz- only
handler_disabled(Option<VendorPrefix>)
-moz- only
last_node(Option<VendorPrefix>)
-moz- only
list_bullet(Option<VendorPrefix>)
-moz- only
list_number(Option<VendorPrefix>)
-moz- only
loading(Option<VendorPrefix>)
-moz- only
locale_dir(Option<VendorPrefix>, TextDirectionality)
lwtheme(Option<VendorPrefix>)
-moz- only
lwtheme_brighttext(Option<VendorPrefix>)
-moz- only
lwtheme_darktext(Option<VendorPrefix>)
-moz- only
native_anonymous(Option<VendorPrefix>)
-moz- only
only_whitespace(Option<VendorPrefix>)
-moz- only
submit_invalid(Option<VendorPrefix>)
-moz- only
suppressed(Option<VendorPrefix>)
-moz- only
system_metric(Option<VendorPrefix>, SystemMetric)
-moz- only (not listed with other pseudo-classes)
tree_cell(Option<VendorPrefix>)
-moz- only
tree_cell_text(Option<VendorPrefix>, TreeHover)
-moz- only.
tree_checkbox(Option<VendorPrefix>)
-moz- only
tree_column(Option<VendorPrefix>)
-moz- only
tree_drop_feedback(Option<VendorPrefix>)
-moz- only
tree_image(Option<VendorPrefix>)
-moz- only
tree_indentation(Option<VendorPrefix>)
-moz- only
tree_line(Option<VendorPrefix>)
-moz- only
tree_progressmeter(Option<VendorPrefix>)
-moz- only
tree_row(Option<VendorPrefix>, TreeHover)
-moz- only.
tree_separator(Option<VendorPrefix>)
-moz- only
tree_twisty(Option<VendorPrefix>)
-moz- only
ui_invalid(Option<VendorPrefix>)
-moz- only
ui_valid(Option<VendorPrefix>)
-moz- only
user_disabled(Option<VendorPrefix>)
-moz- only
window_inactive(Option<VendorPrefix>)
-moz- only
autofill(Option<VendorPrefix>)
-webkit- only, with potential Mozilla support coming.
Implementations§
Source§impl NonTreeStructuralPseudoClass
impl NonTreeStructuralPseudoClass
Sourcepub fn is_attr_based(&self) -> bool
pub fn is_attr_based(&self) -> bool
Returns true if the evaluation of the pseudo-class depends on the element’s attributes.
Sourcepub fn is_safe_user_action_state(&self) -> bool
pub fn is_safe_user_action_state(&self) -> bool
https://drafts.csswg.org/selectors-4/#useraction-pseudos
We intentionally skip the link-related ones.
Trait Implementations§
Source§impl Clone for NonTreeStructuralPseudoClass
impl Clone for NonTreeStructuralPseudoClass
Source§fn clone(&self) -> NonTreeStructuralPseudoClass
fn clone(&self) -> NonTreeStructuralPseudoClass
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for NonTreeStructuralPseudoClass
impl Debug for NonTreeStructuralPseudoClass
Source§impl NonTSPseudoClass for NonTreeStructuralPseudoClass
impl NonTSPseudoClass for NonTreeStructuralPseudoClass
Source§type Impl = OurSelectorImpl
type Impl = OurSelectorImpl
SelectorImpl
this pseudo-element is used for.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 visit<V>(&self, _visitor: &mut V) -> boolwhere
V: SelectorVisitor<Impl = Self::Impl>,
Source§impl PartialEq for NonTreeStructuralPseudoClass
impl PartialEq for NonTreeStructuralPseudoClass
Source§fn eq(&self, other: &NonTreeStructuralPseudoClass) -> bool
fn eq(&self, other: &NonTreeStructuralPseudoClass) -> bool
self
and other
values to be equal, and is used by ==
.