From 2979b0d5b6ce6fff852e74f4da57f44b953dea00 Mon Sep 17 00:00:00 2001 From: James Shannon Date: Thu, 11 Apr 2013 12:38:40 -0700 Subject: [PATCH] Mixin @content with embedded mixin test cases @include inside of a @content block causes issues --- tests/inputs/mixins.scss | 43 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) diff --git a/tests/inputs/mixins.scss b/tests/inputs/mixins.scss index 9baffc17..9cf55dd4 100644 --- a/tests/inputs/mixins.scss +++ b/tests/inputs/mixins.scss @@ -97,3 +97,46 @@ div { color: blue; } } + + +// mixin content (http://sass-lang.com/docs/yardoc/file.SASS_REFERENCE.html#mixin-content) +@mixin content-simple { + div.mixin-content-simple { + @content; + } +} + +@mixin content-with-arg ( $background ) { + div.mixin-content-with-arg { + background: $background; + @content; + } +} + +@include content-simple { + color: red; +} + +@include content-with-arg($background: blue) { + color: red; +} + +@include content-with-arg($background: purple) { + @include hello_world; +} + +@include content-simple { + @include cool(10px, 12px, 21px); +} + +@include content-simple { + @include something(orange); +} + +@include content-with-arg($background: purple) { + @include cool(10px, 12px, 21px); +} + +@include content-with-arg($background: purple) { + @include something(orange); +} \ No newline at end of file