-
Notifications
You must be signed in to change notification settings - Fork 532
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
space-around-operator incorrectly enforces negative z-index #454
Comments
Indeed, noticed this today and was going to report it. |
There are some other scenarios where you can run into this, too, like the expression: .foo {
margin: -1 * ($foo + $bar + $baz);
} |
Confirmed. Was able to reproduce with the examples above. This rule isn't about including units, so maybe we don't need to do the check that a value is followed by a dimension or a percent sign? https://github.com/sasstools/sass-lint/blob/develop/lib/rules/space-around-operator.js#L51 |
Thanks for the report. I'm sure there was a reason at looking for units around manipulating the parser. I'll try and have a look at it today and hotfix it. |
@bgriffith Is there any updates on this issue? |
@SimonFinney Thanks for the prod. I've pushed a PR to develop. Hopefully we can do a release this week. |
👍 |
It looks like
space-around-operator
's exception handling is missing some cases where negative numbers don't necessarily have a dimension or percentage. For instance, the following should be valid CSS:Unfortunately, it looks like the
space-around-operator
rule expects that-
to have a space before it. Putting a space before it actually breaks the AST, though.The text was updated successfully, but these errors were encountered: