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

No function calls and ellipsis variable in call() arguments #569

Closed
gabor-udvari opened this issue Apr 21, 2018 · 4 comments
Closed

No function calls and ellipsis variable in call() arguments #569

gabor-udvari opened this issue Apr 21, 2018 · 4 comments

Comments

@gabor-udvari
Copy link
Contributor

According to the documentation and Ruby Sass and Dart Sass functionality, all the below examples should give the same output:

.does-complie-1 {
  color: call(lighten, #000, 40%);
}

.does-compile-2 {
  $color: #000;
  $percent: 40%;
  color: call(lighten, $color, $percent);
}

.does-not-compile-1 {
  $args: (#000, 40%);
  color: call(lighten, nth($args, 1), nth($args, 2));
}

.does-not-compile-2 {
  $args: (#000, 40%);
  color: call(lighten, $args...);
}

But the last two sections do not compile and throw an error:

 [error]  expecting color: line 20 
@robocoder
Copy link
Collaborator

I'm not happy with the fix but please try out 4963903 in the meantime.

@gabor-udvari
Copy link
Contributor Author

Thank you, the fix solved the issue.

@Cerdic
Copy link
Contributor

Cerdic commented May 9, 2019

Should we close this issue @robocoder?

@robocoder
Copy link
Collaborator

Yeah, closing.

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

No branches or pull requests

3 participants