Created
February 27, 2015 15:46
-
-
Save BPScott/d993bd662ab2d40f8871 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) { | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-the-mixin-can-access-its-args{ | |
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'; } | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-the-mixin-can-access-its-args { | |
content: 'item1, item2 item3'; } | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-list-is-set-after-calling-mixin-with-explicit-parameters { | |
content: 'item1, item2, item3'; } | |
/* Should have content: 'item1, item2, item3'; */ | |
.prove-the-mixin-can-access-its-args { | |
content: 'item1, item2 item3'; } | |
/* 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