Created
February 27, 2015 15:38
-
-
Save BPScott/cf3d0f690cdfcd6e473f to your computer and use it in GitHub Desktop.
Generated by SassMeister.com.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// ---- | |
// libsass (v3.1.0) | |
// ---- | |
$some-list: (item1, item2, item3); | |
@mixin someMixin($first, $second, $third) { | |
.mixin-variables-proving-the-mix-ca{ | |
content: '#{$first}, #{second} #{third}'; | |
} | |
} | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-list-is-defined-initially { | |
content: '#{$some-list}'; | |
} | |
@include someMixin(nth($some-list,1), nth($some-list,2), nth($some-list,3)); | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-list-is-set-after-calling-mixin-with-explicit-parameters { | |
content: '#{$some-list}'; | |
} | |
@include someMixin($some-list...); | |
/* Should have content: 'item1, item2, item3'; */ | |
/* With libsass 3.1.0 this has content: ''; */ | |
.prove-list-is-set-after-calling-mixin-with-list-as-arguments { | |
content: '#{$some-list}'; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/* Should have content: 'item1, item2, item3'; */ | |
.prove-list-is-defined-initially { | |
content: 'item1, item2, item3'; } | |
.mixin-variables-proving-the-mix-ca { | |
content: 'item1, second third'; } | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-list-is-set-after-calling-mixin-with-explicit-parameters { | |
content: 'item1, item2, item3'; } | |
.mixin-variables-proving-the-mix-ca { | |
content: 'item1, second third'; } | |
/* Should have content: 'item1, item2, item3'; */ | |
/* With libsass 3.1.0 this has content: ''; */ | |
.prove-list-is-set-after-calling-mixin-with-list-as-arguments { | |
content: ''; } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment