PseudoElement

Enum PseudoElement 

Source
pub enum PseudoElement {
Show 79 variants after, backdrop(Option<VendorPrefix>), before, cue, file_selector_button, first_letter, first_line, marker, grammar_error, placeholder(Option<VendorPrefix>), selection(Option<VendorPrefix>), spelling_error, progress_bar(Option<VendorPrefix>), range_progress(Option<VendorPrefix>), range_thumb(Option<VendorPrefix>), range_track(Option<VendorPrefix>), anonymous_block(Option<VendorPrefix>), details_summary(Option<VendorPrefix>), details_content(Option<VendorPrefix>), text(Option<VendorPrefix>), input_text(Option<VendorPrefix>), table_wrapper(Option<VendorPrefix>), anonymous_table_wrapper(Option<VendorPrefix>), anonymous_table(Option<VendorPrefix>), anonymous_table_row(Option<VendorPrefix>), anonymous_table_cell(Option<VendorPrefix>), inline_block_wrapper(Option<VendorPrefix>), inline_absolute(Option<VendorPrefix>), browse(Option<VendorPrefix>), check(Option<VendorPrefix>), clear(Option<VendorPrefix>), expand(Option<VendorPrefix>), fill_lower(Option<VendorPrefix>), reveal(Option<VendorPrefix>), value(Option<VendorPrefix>), anonymous_positioned_block(Option<VendorPrefix>), canvas(Option<VendorPrefix>), cell_content(Option<VendorPrefix>), focus_inner(Option<VendorPrefix>), focus_outer(Option<VendorPrefix>), inline_table(Option<VendorPrefix>), list_bullet(Option<VendorPrefix>), page(Option<VendorPrefix>), page_sequence(Option<VendorPrefix>), pagebreak(Option<VendorPrefix>), pagecontent(Option<VendorPrefix>), scrolled_canvas(Option<VendorPrefix>), scrolled_content(Option<VendorPrefix>), scrolled_page_sequence(Option<VendorPrefix>), svg_foreign_content(Option<VendorPrefix>), table(Option<VendorPrefix>), table_cell(Option<VendorPrefix>), table_column(Option<VendorPrefix>), table_column_group(Option<VendorPrefix>), table_outer(Option<VendorPrefix>), table_row(Option<VendorPrefix>), table_row_group(Option<VendorPrefix>), viewport(Option<VendorPrefix>), viewport_scroll(Option<VendorPrefix>), xul_anonymous_block(Option<VendorPrefix>), tree_cell_text(Option<VendorPrefix>), tree_row(Option<VendorPrefix>), file_upload_button(Option<VendorPrefix>), inner_spin_button(Option<VendorPrefix>), meter_bar(Option<VendorPrefix>), meter_even_less_good_value(Option<VendorPrefix>), meter_inner_element(Option<VendorPrefix>), meter_optimum_value(Option<VendorPrefix>), meter_suboptimum_value(Option<VendorPrefix>), outer_spin_button(Option<VendorPrefix>), progress_inner_element(Option<VendorPrefix>), progress_value(Option<VendorPrefix>), search_cancel_button(Option<VendorPrefix>), search_results_button(Option<VendorPrefix>), search_decoration(Option<VendorPrefix>), color_swatch_wrapper(Option<VendorPrefix>), color_swatch(Option<VendorPrefix>), calendar_picker_indicator(Option<VendorPrefix>), details_marker(Option<VendorPrefix>),
}
Expand description

A pseudo-element, both public and private. Includes browser-specific pseudo-elements and pseudo-elements which, although named differently, map to near equivalency

Variants§

§

after

§

backdrop(Option<VendorPrefix>)

§

before

§

cue

§

file_selector_button

§

first_letter

§

first_line

§

marker

§

grammar_error

§

placeholder(Option<VendorPrefix>)

§

selection(Option<VendorPrefix>)

§

spelling_error

§

progress_bar(Option<VendorPrefix>)

Not standardized but there are near equivalents amongst the various browsers under different names (we use the Mozilla name without the -moz- prefix)

§

range_progress(Option<VendorPrefix>)

Not standardized but there are near equivalents amongst the various browsers under different names (we use the Mozilla name without the -moz- prefix)

§

range_thumb(Option<VendorPrefix>)

Not standardized but there are near equivalents amongst the various browsers under different names (we use the Mozilla name without the -moz- prefix)

§

range_track(Option<VendorPrefix>)

Not standardized but there are near equivalents amongst the various browsers under different names (we use the Mozilla name without the -moz- prefix)

§

anonymous_block(Option<VendorPrefix>)

-servo- and -moz- only

§

details_summary(Option<VendorPrefix>)

-servo- only

§

details_content(Option<VendorPrefix>)

-servo- only

§

text(Option<VendorPrefix>)

-servo- only

§

input_text(Option<VendorPrefix>)

-servo- only

§

table_wrapper(Option<VendorPrefix>)

-servo- only

§

anonymous_table_wrapper(Option<VendorPrefix>)

-servo- only

§

anonymous_table(Option<VendorPrefix>)

-servo- only

§

anonymous_table_row(Option<VendorPrefix>)

-servo- only

§

anonymous_table_cell(Option<VendorPrefix>)

-servo- only

§

inline_block_wrapper(Option<VendorPrefix>)

-servo- only

§

inline_absolute(Option<VendorPrefix>)

-servo- only

§

browse(Option<VendorPrefix>)

-ms- only

§

check(Option<VendorPrefix>)

-ms- only

§

clear(Option<VendorPrefix>)

-ms- only

§

expand(Option<VendorPrefix>)

-ms- only

§

fill_lower(Option<VendorPrefix>)

-ms- only

§

reveal(Option<VendorPrefix>)

-ms- only

§

value(Option<VendorPrefix>)

-ms- only

§

anonymous_positioned_block(Option<VendorPrefix>)

-moz- only

§

canvas(Option<VendorPrefix>)

-moz- only

§

cell_content(Option<VendorPrefix>)

-moz- only

§

focus_inner(Option<VendorPrefix>)

-moz- only

§

focus_outer(Option<VendorPrefix>)

-moz- only

§

inline_table(Option<VendorPrefix>)

-moz- only

§

list_bullet(Option<VendorPrefix>)

-moz- only

§

page(Option<VendorPrefix>)

-moz- only

§

page_sequence(Option<VendorPrefix>)

-moz- only

§

pagebreak(Option<VendorPrefix>)

-moz- only

§

pagecontent(Option<VendorPrefix>)

-moz- only

§

scrolled_canvas(Option<VendorPrefix>)

-moz- only

§

scrolled_content(Option<VendorPrefix>)

-moz- only

§

scrolled_page_sequence(Option<VendorPrefix>)

-moz- only

§

svg_foreign_content(Option<VendorPrefix>)

-moz- only

§

table(Option<VendorPrefix>)

-moz- only

§

table_cell(Option<VendorPrefix>)

-moz- only

§

table_column(Option<VendorPrefix>)

-moz- only

§

table_column_group(Option<VendorPrefix>)

-moz- only

§

table_outer(Option<VendorPrefix>)

-moz- only

§

table_row(Option<VendorPrefix>)

-moz- only

§

table_row_group(Option<VendorPrefix>)

-moz- only

§

viewport(Option<VendorPrefix>)

-moz- only

§

viewport_scroll(Option<VendorPrefix>)

-moz- only

§

xul_anonymous_block(Option<VendorPrefix>)

-moz- only

§

tree_cell_text(Option<VendorPrefix>)

§

tree_row(Option<VendorPrefix>)

§

file_upload_button(Option<VendorPrefix>)

-webkit- only

§

inner_spin_button(Option<VendorPrefix>)

-webkit- only

§

meter_bar(Option<VendorPrefix>)

-webkit- only

§

meter_even_less_good_value(Option<VendorPrefix>)

-webkit- only

§

meter_inner_element(Option<VendorPrefix>)

-webkit- only

§

meter_optimum_value(Option<VendorPrefix>)

-webkit- only

§

meter_suboptimum_value(Option<VendorPrefix>)

-webkit- only

§

outer_spin_button(Option<VendorPrefix>)

-webkit- only

§

progress_inner_element(Option<VendorPrefix>)

-webkit- only

§

progress_value(Option<VendorPrefix>)

-webkit- only

§

search_cancel_button(Option<VendorPrefix>)

-webkit- only

§

search_results_button(Option<VendorPrefix>)

-webkit- only

§

search_decoration(Option<VendorPrefix>)

-webkit- only (not documented on MDN on 7th November 2017)

§

color_swatch_wrapper(Option<VendorPrefix>)

-webkit- and -moz-

§

color_swatch(Option<VendorPrefix>)

-webkit- and -moz-

§

calendar_picker_indicator(Option<VendorPrefix>)

-webkit- only

§

details_marker(Option<VendorPrefix>)

-webkit- only

Implementations§

Source§

impl PseudoElement

Source

pub fn supports_user_action_state(&self) -> bool

Whether this pseudo-element supports user action selectors.

Trait Implementations§

Source§

impl Clone for PseudoElement

Source§

fn clone(&self) -> PseudoElement

Returns a duplicate of the value. Read more
1.0.0 · Source§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
Source§

impl Debug for PseudoElement

Source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
Source§

impl Hash for PseudoElement

Source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given Hasher. Read more
1.3.0 · Source§

fn hash_slice<H>(data: &[Self], state: &mut H)
where H: Hasher, Self: Sized,

Feeds a slice of this type into the given Hasher. Read more
Source§

impl Ord for PseudoElement

Source§

fn cmp(&self, other: &PseudoElement) -> Ordering

This method returns an Ordering between self and other. Read more
1.21.0 · Source§

fn max(self, other: Self) -> Self
where Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0 · Source§

fn min(self, other: Self) -> Self
where Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0 · Source§

fn clamp(self, min: Self, max: Self) -> Self
where Self: Sized,

Restrict a value to a certain interval. Read more
Source§

impl PartialEq for PseudoElement

Source§

fn eq(&self, other: &PseudoElement) -> bool

Tests for self and other values to be equal, and is used by ==.
1.0.0 · Source§

fn ne(&self, other: &Rhs) -> bool

Tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
Source§

impl PartialOrd for PseudoElement

Source§

fn partial_cmp(&self, other: &PseudoElement) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0 · Source§

fn lt(&self, other: &Rhs) -> bool

Tests less than (for self and other) and is used by the < operator. Read more
1.0.0 · Source§

fn le(&self, other: &Rhs) -> bool

Tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0 · Source§

fn gt(&self, other: &Rhs) -> bool

Tests greater than (for self and other) and is used by the > operator. Read more
1.0.0 · Source§

fn ge(&self, other: &Rhs) -> bool

Tests greater than or equal to (for self and other) and is used by the >= operator. Read more
Source§

impl PseudoElement for PseudoElement

Source§

type Impl = OurSelectorImpl

The SelectorImpl this pseudo-element is used for.
Source§

fn accepts_state_pseudo_classes(&self) -> bool

Whether the pseudo-element supports a given state selector to the right of it.
Source§

fn valid_after_slotted(&self) -> bool

Whether this pseudo-element is valid after a ::slotted(..) pseudo.
Source§

impl ToCss for PseudoElement

Source§

fn to_css<W: Write>(&self, dest: &mut W) -> Result

Serialize self in CSS syntax, writing to dest.
Source§

fn to_css_string(&self) -> String

Serialize self in CSS syntax and return a string. Read more
Source§

impl Eq for PseudoElement

Source§

impl StructuralPartialEq for PseudoElement

Auto Trait Implementations§

Blanket Implementations§

Source§

impl<T> Any for T
where T: 'static + ?Sized,

Source§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
Source§

impl<T> Borrow<T> for T
where T: ?Sized,

Source§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
Source§

impl<T> BorrowMut<T> for T
where T: ?Sized,

Source§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
Source§

impl<T> CloneToUninit for T
where T: Clone,

Source§

unsafe fn clone_to_uninit(&self, dest: *mut u8)

🔬This is a nightly-only experimental API. (clone_to_uninit)
Performs copy-assignment from self to dest. Read more
Source§

impl<T> From<T> for T

Source§

fn from(t: T) -> T

Returns the argument unchanged.

Source§

impl<T, U> Into<U> for T
where U: From<T>,

Source§

fn into(self) -> U

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Source§

impl<T> ToOwned for T
where T: Clone,

Source§

type Owned = T

The resulting type after obtaining ownership.
Source§

fn to_owned(&self) -> T

Creates owned data from borrowed data, usually by cloning. Read more
Source§

fn clone_into(&self, target: &mut T)

Uses borrowed data to replace owned data, usually by cloning. Read more
Source§

impl<T, U> TryFrom<U> for T
where U: Into<T>,

Source§

type Error = Infallible

The type returned in the event of a conversion error.
Source§

fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>

Performs the conversion.
Source§

impl<T, U> TryInto<U> for T
where U: TryFrom<T>,

Source§

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.
Source§

fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>

Performs the conversion.