Function style::color::parsing::parse_color_keyword

source ยท
pub fn parse_color_keyword(ident: &str) -> Result<Color, ()>
Expand description

Return the named color with the given name.

Matching is case-insensitive in the ASCII range. CSS escaping (if relevant) should be resolved before calling this function. (For example, the value of an Ident token is fine.)