Parse filter: none

This commit is contained in:
Simon Sapin 2015-02-06 09:11:29 +11:00
parent 5baebb0d44
commit a97893a3ed

View file

@ -1775,6 +1775,9 @@ pub mod longhands {
pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result<SpecifiedValue, ()> {
let mut filters = Vec::new();
if input.try(|input| input.expect_ident_matching("none")).is_ok() {
return Ok(SpecifiedValue::new(filters))
}
loop {
if let Ok(function_name) = input.try(|input| input.expect_function()) {
filters.push(try!(input.parse_nested_block(|input| {