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

Regression in parsing @at-rules #1214

Closed
xzyfer opened this issue May 15, 2015 · 8 comments · Fixed by #1213
Closed

Regression in parsing @at-rules #1214

xzyfer opened this issue May 15, 2015 · 8 comments · Fixed by #1213

Comments

@xzyfer
Copy link
Contributor

xzyfer commented May 15, 2015

This regression was introduced 3.2.4.

@mixin keyframes($animation-name) {
  @keyframes $animation-name {
    @content;
  }
}

@include keyframes(bounce) {
  0%, 20%, 50%, 80%, 100% {transform: translateY(0);}
  40% {transform: translateY(-30px);}
  60% {transform: translateY(-15px);}
}

Ruby Sass

@keyframes $animation-name {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0); }
  40% {
    transform: translateY(-30px); }
  60% {
    transform: translateY(-15px); } }

Libsass 3.2.4

Error: invalid selector after
        on line 2 of test.scss
>>   @keyframes $animation-name {
   ------------^

Spec added: sass/sass-spec#387

@saper
Copy link
Member

saper commented May 15, 2015

(accoring to git bisect 974ae42 broke this, it was introduced in #1177)

xzyfer added a commit to xzyfer/sass-spec that referenced this issue May 15, 2015
@xzyfer
Copy link
Contributor Author

xzyfer commented May 15, 2015

This is fixed and will be 3.2.5.

@xzyfer
Copy link
Contributor Author

xzyfer commented May 15, 2015

I appear to have misunderstood this issue.

@xzyfer xzyfer reopened this May 15, 2015
@Chocanto
Copy link

Issue still opened ? Is this bug not fixed ?

@xzyfer
Copy link
Contributor Author

xzyfer commented May 31, 2015

@Chocanto It no longer errors, however it acts different to Ruby Sass.

@xzyfer
Copy link
Contributor Author

xzyfer commented May 31, 2015

I'm closing this issue since the OP was regarding an error being thrown, which has been addressed.

I've opened #1253 to track the difference in output.

@xzyfer xzyfer closed this as completed May 31, 2015
@xzyfer xzyfer assigned xzyfer and unassigned mgreter May 31, 2015
@xzyfer xzyfer removed the Dev - WIP label May 31, 2015
@Chocanto
Copy link

Chocanto commented Jun 1, 2015

@xzyfer Wow, nice work. Thank you ! :)

@mgreter
Copy link
Contributor

mgreter commented Jul 13, 2015

We now have a passing spec test since #1249 was merged 🎈

@mgreter mgreter reopened this Jul 13, 2015
@mgreter mgreter closed this as completed Jul 13, 2015
@xzyfer xzyfer modified the milestones: 3.3, 3.2.5 Jul 14, 2015
@xzyfer xzyfer assigned mgreter and unassigned xzyfer Jul 14, 2015
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.

4 participants