mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Introduce a style::values::CustomIdent type
This commit is contained in:
parent
5daf92dd5a
commit
4993a80074
2 changed files with 32 additions and 1 deletions
|
@ -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),
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue