Skip to content

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

@gabor-udvari

Description

@gabor-udvari

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 

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions