mirror of
https://github.com/servo/servo.git
synced 2025-08-07 06:25:32 +01:00
Fix shorthand parsing pushing declarations when parse_entirely returns Err
This commit is contained in:
parent
66c357feef
commit
3d3c196d90
2 changed files with 4 additions and 3 deletions
|
@ -827,7 +827,7 @@
|
|||
pub fn parse_into<'i, 't>(declarations: &mut SourcePropertyDeclaration,
|
||||
context: &ParserContext, input: &mut Parser<'i, 't>)
|
||||
-> Result<(), ParseError<'i>> {
|
||||
parse_value(context, input).map(|longhands| {
|
||||
input.parse_entirely(|input| parse_value(context, input)).map(|longhands| {
|
||||
% for sub_property in shorthand.sub_properties:
|
||||
declarations.push(PropertyDeclaration::${sub_property.camel_case}(
|
||||
longhands.${sub_property.ident}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue