test invalid arithmetic in calc

This commit is contained in:
ConnorSkees 2020-04-21 04:28:23 -04:00
parent fc3facb80c
commit f8ab03a94f

View File

@ -32,6 +32,10 @@ test!(
"a {\n color: calc(/**/);\n}\n" "a {\n color: calc(/**/);\n}\n"
); );
test!(calc_nested_parens, "a {\n color: calc((((()))));\n}\n"); test!(calc_nested_parens, "a {\n color: calc((((()))));\n}\n");
test!(
calc_invalid_arithmetic,
"a {\n color: calc(2px + 2px + 5%);\n}\n"
);
test!( test!(
element_whitespace, element_whitespace,
"a {\n color: element( 1 );\n}\n", "a {\n color: element( 1 );\n}\n",