diff --git a/components/style/values/specified/calc.rs b/components/style/values/specified/calc.rs index c42683bce1f..d5733a6ce4a 100644 --- a/components/style/values/specified/calc.rs +++ b/components/style/values/specified/calc.rs @@ -374,9 +374,9 @@ impl CalcNode { rhs.negate(); sum.push(rhs); }, - ref t => { - let t = t.clone(); - return Err(input.new_unexpected_token_error(t)); + _ => { + input.reset(&start); + break; }, } },