Skip to content

Commit 5fc3528

Browse files
committed
Merge branch 'patch-1' of git://github.com/nicksrandall/parcel-css into nicksrandall-patch-1
# Conflicts: # src/properties/list.rs
2 parents 7802945 + 9d38efb commit 5fc3528

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/properties/list.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,14 @@ impl Default for ListStyleType<'_> {
2424

2525
impl<'i> Parse<'i> for ListStyleType<'i> {
2626
fn parse<'t>(input: &mut Parser<'i, 't>) -> Result<Self, ParseError<'i, ParserError<'i>>> {
27-
if let Ok(val) = input.try_parse(CounterStyle::parse) {
28-
return Ok(ListStyleType::CounterStyle(val))
29-
}
30-
3127
if input.try_parse(|input| input.expect_ident_matching("none")).is_ok() {
3228
return Ok(ListStyleType::None)
3329
}
3430

31+
if let Ok(val) = input.try_parse(CounterStyle::parse) {
32+
return Ok(ListStyleType::CounterStyle(val))
33+
}
34+
3535
let s = input.expect_string_cloned()?;
3636
Ok(ListStyleType::String(s))
3737
}

0 commit comments

Comments
 (0)