sass-spec/spec/libsass-closed-issues/issue_2185/input.scss
raw| 1 | $bar: true; |
| 2 | |
| 3 | @mixin mixin() { |
| 4 | mix: in; |
| 5 | } |
| 6 | |
| 7 | @mixin include() { |
| 8 | @content; |
| 9 | } |
| 10 | |
| 11 | p { |
| 12 | @at-root { |
| 13 | @if $bar { |
| 14 | #if { |
| 15 | height: 100px; |
| 16 | } |
| 17 | } |
| 18 | @if (not $bar) { |
| 19 | } @else if($bar) { |
| 20 | #elseif { |
| 21 | width: 100px; |
| 22 | } |
| 23 | } |
| 24 | @if (not $bar) { |
| 25 | } @else { |
| 26 | #else { |
| 27 | width: 100px; |
| 28 | } |
| 29 | } |
| 30 | @for $i from 1 through 1 { |
| 31 | #for { |
| 32 | foo: bar#{$i}; |
| 33 | } |
| 34 | } |
| 35 | $i: 0; |
| 36 | @while ($i == 0) { |
| 37 | $i: $i + 1; |
| 38 | #while { |
| 39 | foo: bar#{$i}; |
| 40 | } |
| 41 | } |
| 42 | @each $i in (1) { |
| 43 | #each { |
| 44 | foo: bar#{$i}; |
| 45 | } |
| 46 | } |
| 47 | #inc { |
| 48 | @include mixin(); |
| 49 | @include include() { |
| 50 | inc: lude; |
| 51 | } |
| 52 | } |
| 53 | @supports (display: flex) { |
| 54 | a {display: flex} |
| 55 | } |
| 56 | @foo { |
| 57 | bar: bat; |
| 58 | } |
| 59 | } |
| 60 | } |