diff --git a/tests/unit/style/parsing/length.rs b/tests/unit/style/parsing/length.rs index a76f26d826b..eda3b3425e3 100644 --- a/tests/unit/style/parsing/length.rs +++ b/tests/unit/style/parsing/length.rs @@ -9,4 +9,7 @@ use style::values::specified::length::Length; #[test] fn test_calc() { assert!(parse(Length::parse, "calc(1px+ 2px)").is_err()); + assert!(parse(Length::parse, "calc( 1px + 2px )").is_ok()); + assert!(parse(Length::parse, "calc(1px + 2px )").is_ok()); + assert!(parse(Length::parse, "calc( 1px + 2px)").is_ok()); }