From 9d38efbd11b74a71d001c077d56bae7491afe078 Mon Sep 17 00:00:00 2001 From: Nick Randall Date: Thu, 27 Jan 2022 20:49:34 -0700 Subject: [PATCH] =?UTF-8?q?Fix=20list-style-type=20prop=20when=20=E2=80=9C?= =?UTF-8?q?none=E2=80=9D=20value?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/properties/list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/properties/list.rs b/src/properties/list.rs index a5a54297..70b26d0c 100644 --- a/src/properties/list.rs +++ b/src/properties/list.rs @@ -24,14 +24,14 @@ impl Default for ListStyleType { impl Parse for ListStyleType { fn parse<'i, 't>(input: &mut Parser<'i, 't>) -> Result>> { - if let Ok(val) = input.try_parse(CounterStyle::parse) { - return Ok(ListStyleType::CounterStyle(val)) - } - if input.try_parse(|input| input.expect_ident_matching("none")).is_ok() { return Ok(ListStyleType::None) } + if let Ok(val) = input.try_parse(CounterStyle::parse) { + return Ok(ListStyleType::CounterStyle(val)) + } + let s = input.expect_string()?.as_ref().to_owned(); Ok(ListStyleType::String(s)) }