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

scss/operator-no-unspaced rule fails on negative numbers in interpolated values #803

Closed
sergeyDevjatov opened this issue Apr 6, 2023 · 1 comment · Fixed by #972
Closed
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed

Comments

@sergeyDevjatov
Copy link

This is similar issue to #450

There is no fails

$fooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBar: color.scale(
  #000000,
  $lightness: -50%,
  $alpha: -50%
);

In this case which similar to case above there is fails on $lightness and $alpha values

$fooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBarFooBar: #{color.scale(
    #000000,
    $lightness: -50%,
    $alpha: -50%
  )};

In this case there is fail on $lightness value

$c: #{color.scale(#000000, $lightness: -50%, $alpha: -50%)};

It's reproduced with stylelint-scss@4.6.0 and stylelint@15.4.0

@kristerkari
Copy link
Collaborator

Thanks! Sounds like a bug.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug 🐛 Something isn't working Help wanted 🙋 Help is needed
Development

Successfully merging a pull request may close this issue.

2 participants