pub enum VendorPrefix {
o,
moz,
epub,
webkit,
ms,
servo,
Unrecognised(String),
}
Expand description
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
-o- prefix (legacy Opera Presto prefix).
moz
-moz- prefix.
epub
-epub- prefix
webkit
-webkit- prefix (Is sometimes also used by IE, Edge and Blink-based browsers (Chrome and Opera)).
ms
-ms- prefix.
servo
-servo- prefix
Unrecognised(String)
An unrecognised prefix, usually implies unusual or mistaken CSS
Implementations§
Source§impl VendorPrefix
impl VendorPrefix
Sourcepub fn findPrefixIfAnyForAsciiLowerCaseName<'i>(
asciiLowerCaseName: String,
) -> (Option<VendorPrefix>, String)
pub fn findPrefixIfAnyForAsciiLowerCaseName<'i>( asciiLowerCaseName: String, ) -> (Option<VendorPrefix>, String)
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 --
Trait Implementations§
Source§impl Clone for VendorPrefix
impl Clone for VendorPrefix
Source§fn clone(&self) -> VendorPrefix
fn clone(&self) -> VendorPrefix
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more