From a97893a3ed1743e8237d2cf3f80743f5bd8d263b Mon Sep 17 00:00:00 2001 From: Simon Sapin Date: Fri, 6 Feb 2015 09:11:29 +1100 Subject: [PATCH] Parse `filter: none` --- components/style/properties.mako.rs | 3 +++ 1 file changed, 3 insertions(+) diff --git a/components/style/properties.mako.rs b/components/style/properties.mako.rs index c50d0a852fe..5783a234ec9 100644 --- a/components/style/properties.mako.rs +++ b/components/style/properties.mako.rs @@ -1775,6 +1775,9 @@ pub mod longhands { pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result { 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| {