Enum css::domain::VendorPrefix [] [src]

pub enum VendorPrefix {
    o,
    moz,
    epub,
    webkit,
    ms,
    servo,
    Unrecognised(String),
}

Vendor prefixes Sort order is such that -o- sorts before -webkit- and -ms- sorts after -webkit-, but -epub- (which is only supported by Webkit) sorts before -webkit- There ae other, now rare prefixes, such as -vx- (for Opera before -o-), -wap- (for WAP; a very defunct standard from 1999), -khtml- (for Webkit's predecessor) and so on. However, there are hardly ever encountered and so aren't explicitly coded for.

Variants

-o- prefix (legacy Opera Presto prefix).

-moz- prefix.

-epub- prefix

-webkit- prefix (Is sometimes also used by IE, Edge and Blink-based browsers (Chrome and Opera)).

-ms- prefix.

-servo- prefix

An unrecognised prefix, usually implies unusual or mistaken CSS

Methods

impl VendorPrefix
[src]

[src]

Finds a prefix for an ascii lower case name, returning the prefix (if any) and the unprefixed name Is not confused by CSS custom properties which start --

[src]

Prefixes a name with a vendor prefix, eg 'background' might become '-moz-background' if Self is moz

Trait Implementations

impl Debug for VendorPrefix
[src]

[src]

Formats the value using the given formatter.

impl Clone for VendorPrefix
[src]

[src]

Returns a copy of the value. Read more

1.0.0
[src]

Performs copy-assignment from source. Read more

impl Ord for VendorPrefix
[src]

[src]

This method returns an Ordering between self and other. Read more

1.22.0
[src]

Compares and returns the maximum of two values. Read more

1.22.0
[src]

Compares and returns the minimum of two values. Read more

impl PartialOrd for VendorPrefix
[src]

[src]

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

[src]

This method tests less than (for self and other) and is used by the < operator. Read more

[src]

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more

[src]

This method tests greater than (for self and other) and is used by the > operator. Read more

[src]

This method tests greater than or equal to (for self and other) and is used by the >= operator. Read more

impl Eq for VendorPrefix
[src]

impl PartialEq for VendorPrefix
[src]

[src]

This method tests for self and other values to be equal, and is used by ==. Read more

[src]

This method tests for !=.

impl Hash for VendorPrefix
[src]

[src]

Feeds this value into the given [Hasher]. Read more

1.3.0
[src]

Feeds a slice of this type into the given [Hasher]. Read more

impl ToCss for VendorPrefix
[src]

[src]

Serialize self in CSS syntax, writing to dest.

[src]

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