Introduce a style::values::CustomIdent type

This commit is contained in:
Simon Sapin 2017-04-14 05:24:04 +02:00
parent 5daf92dd5a
commit 4993a80074
2 changed files with 32 additions and 1 deletions

View file

@ -444,6 +444,7 @@ impl CSSWideKeyword {
/// to a CSSWideKeyword.
pub fn from_ident<'i>(ident: &Cow<'i, str>) -> Option<Self> {
match_ignore_ascii_case! { ident,
// If modifying this set of keyword, also update values::CustomIdent::from_ident
"initial" => Some(CSSWideKeyword::Initial),
"inherit" => Some(CSSWideKeyword::Inherit),
"unset" => Some(CSSWideKeyword::Unset),