[][src]Function cssparser::parse_color_keyword

pub fn parse_color_keyword(ident: &str) -> Result<Color, ()>

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.)