Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

@elseif is not recognized #1060

Closed
mgol opened this issue Apr 7, 2015 · 3 comments · Fixed by #1062
Closed

@elseif is not recognized #1060

mgol opened this issue Apr 7, 2015 · 3 comments · Fixed by #1062

Comments

@mgol
Copy link

mgol commented Apr 7, 2015

The following SCSS:

div {
    @if true {
        display: block;
    } @elseif true {
        display: flex;
    }
}

is translated via libsass 3.2.0-beta.5 to:

div {
  display: block; }

@elseif true {
  div {
    display: flex; } }

Ruby Sass translates it to:

div {
  display: block; }

Changing @elseif to @else if resolves the issue.

@xzyfer
Copy link
Contributor

xzyfer commented Apr 7, 2015

Specs added sass/sass-spec#306

@xzyfer
Copy link
Contributor

xzyfer commented Apr 7, 2015

This is fixed and will be 3.2.0

@mgol
Copy link
Author

mgol commented Apr 7, 2015

Thanks! :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants