Update cssparser.

https://github.com/servo/rust-cssparser/pull/91
This commit is contained in:
Simon Sapin 2016-01-19 14:14:12 +01:00
parent c80fa33864
commit 6fd46b5e6a
21 changed files with 104 additions and 125 deletions

View file

@ -133,7 +133,7 @@ impl Expression {
},
"max-width" => {
Ok(Expression::Width(Range::Max(try!(specified::Length::parse_non_negative(input)))))
}
},
_ => Err(())
}
})
@ -157,7 +157,7 @@ impl MediaQuery {
media_type = match_ignore_ascii_case! { ident,
"screen" => MediaQueryType::MediaType(MediaType::Screen),
"print" => MediaQueryType::MediaType(MediaType::Print),
"all" => MediaQueryType::All
"all" => MediaQueryType::All,
_ => MediaQueryType::MediaType(MediaType::Unknown)
}
} else {