From a2f255448e6a755892a97b7df9fc2b65efc5dccc Mon Sep 17 00:00:00 2001 From: joheriks Date: Mon, 28 Oct 2013 17:06:23 +0200 Subject: Allow @font-face and general @-directives inside @if-blocks (#11649) Change-Id: Ifa844e7bf8add886792b39c016cc2c9aa3d94b0c --- .../tests/resources/automatic/css/at-directive-in-if.css | 1 + .../tests/resources/automatic/scss/at-directive-in-if.scss | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 theme-compiler/tests/resources/automatic/css/at-directive-in-if.css create mode 100644 theme-compiler/tests/resources/automatic/scss/at-directive-in-if.scss (limited to 'theme-compiler/tests/resources') diff --git a/theme-compiler/tests/resources/automatic/css/at-directive-in-if.css b/theme-compiler/tests/resources/automatic/css/at-directive-in-if.css new file mode 100644 index 0000000000..80d4821ead --- /dev/null +++ b/theme-compiler/tests/resources/automatic/css/at-directive-in-if.css @@ -0,0 +1 @@ +@font-face {} \ No newline at end of file diff --git a/theme-compiler/tests/resources/automatic/scss/at-directive-in-if.scss b/theme-compiler/tests/resources/automatic/scss/at-directive-in-if.scss new file mode 100644 index 0000000000..30556fb382 --- /dev/null +++ b/theme-compiler/tests/resources/automatic/scss/at-directive-in-if.scss @@ -0,0 +1,8 @@ +@mixin test($italic: true) { + @if $italic { + @font-face { + } + } +} + +@include test; \ No newline at end of file -- cgit v1.2.3