| 1 |
$keyword: foobar; |
| 2 |
|
| 3 |
@mixin test($arglist...){ |
| 4 |
$map: keywords($arglist); |
| 5 |
/*#{inspect($map)}*/ |
| 6 |
/*#{inspect($arglist)}*/ |
| 7 |
} |
| 8 |
|
| 9 |
// Works |
| 10 |
@include test(foo, bar, baz); |
| 11 |
// Ruby Sass: /*foo, bar, baz*/ |
| 12 |
// LibSass : /*foo, bar, baz*/ |
| 13 |
|
| 14 |
// LibSass does not inspect as () |
| 15 |
@include test; |
| 16 |
// Ruby Sass: /*()*/ |
| 17 |
// LibSass : /**/ |
| 18 |
|
| 19 |
// Ruby Sass throws error – LibSass shows keywords in arglist |
| 20 |
// (keywords should not show in arglist – see below) |
| 21 |
@include test(foo, bar, baz, $keyword: keyword); |
| 22 |
// Ruby Sass: "Mixin test1 doesn't have an argument named $keyword." |
| 23 |
// LibSass : /*foo, bar, baz, $keyword: keyword*/ |