mirror of
https://github.com/servo/servo.git
synced 2025-08-03 12:40:06 +01:00
Parse filter: none
This commit is contained in:
parent
5baebb0d44
commit
a97893a3ed
1 changed files with 3 additions and 0 deletions
|
@ -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| {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue