diff --git a/tests/get-function.rs b/tests/get-function.rs index 91da744..31583f6 100644 --- a/tests/get-function.rs +++ b/tests/get-function.rs @@ -116,3 +116,8 @@ test!( }", "a {\n color: get-function(\"-test\");\n color: get-function(\"-test\");\n}\n" ); +test!( + nested_call_and_get_function, + "a {\n color: call(call(get-function(get-function), darken), red, 10%);\n}\n", + "a {\n color: #cc0000;\n}\n" +); diff --git a/tests/if.rs b/tests/if.rs index 7032ccc..13a0f43 100644 --- a/tests/if.rs +++ b/tests/if.rs @@ -135,6 +135,11 @@ test!( @else if not comparable($p, 0) {}", "" ); +test!( + at_rule_inside_ruleset, + "@mixin foo {\n color: red;\n}\n\n@if true {\n a {\n @include foo;\n }\n}\n", + "a {\n color: red;\n}\n" +); error!( nothing_after_escape, "@if \\", "Error: Expected expression." diff --git a/tests/styles.rs b/tests/styles.rs index ee5100b..d0d9fb7 100644 --- a/tests/styles.rs +++ b/tests/styles.rs @@ -124,6 +124,11 @@ test!( "a {\n webkit: {\n webkit: {\n color: red;\n }\n }\n}\n", "a {\n webkit-webkit-color: red;\n}\n" ); +test!( + no_space_after_colon_before_nested_style, + "a {\n foo:{\n bar: baz\n }\n}\n", + "a {\n foo-bar: baz;\n}\n" +); test!( no_space_between_colon, "a {\n color:red;\n}\n",