mirror of
https://github.com/servo/servo.git
synced 2025-08-05 13:40:08 +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, ()> {
|
pub fn parse(_context: &ParserContext, input: &mut Parser) -> Result<SpecifiedValue, ()> {
|
||||||
let mut filters = Vec::new();
|
let mut filters = Vec::new();
|
||||||
|
if input.try(|input| input.expect_ident_matching("none")).is_ok() {
|
||||||
|
return Ok(SpecifiedValue::new(filters))
|
||||||
|
}
|
||||||
loop {
|
loop {
|
||||||
if let Ok(function_name) = input.try(|input| input.expect_function()) {
|
if let Ok(function_name) = input.try(|input| input.expect_function()) {
|
||||||
filters.push(try!(input.parse_nested_block(|input| {
|
filters.push(try!(input.parse_nested_block(|input| {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue