sass-spec/spec/libsass-closed-issues/issue_2246/input.scss
raw| 1 | @mixin foo($option: 'foo') { |
| 2 | // Create a unique, random placeholder to store styles |
| 3 | $placeholder : $option + random(9999); |
| 4 | |
| 5 | // Store the styles in the placeholder |
| 6 | @at-root %#{$placeholder} { |
| 7 | content: 'foo'; |
| 8 | } |
| 9 | |
| 10 | @at-root { |
| 11 | .bar { |
| 12 | @extend %#{$placeholder}; |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | @mixin bar($option) { |
| 18 | @include foo($option); |
| 19 | } |
| 20 | |
| 21 | .foo { |
| 22 | @include bar('baz'); |
| 23 | } |