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 silently fails to compile lines beginning with -- #2195

Closed
chrisdeeming opened this issue Mar 14, 2024 · 1 comment
Closed

SCSS silently fails to compile lines beginning with -- #2195

chrisdeeming opened this issue Mar 14, 2024 · 1 comment

Comments

@chrisdeeming
Copy link

Please see:
https://sass-lang.com/playground/#eJwzNHQoLU5VUCpOLC62Ss7PyS9SsubisirKzy/hquZSUNDVLUssslIAy+gl5hRkJGpkFOdoGOgoGBoYqOoomBqoampagxQSpa4WAEBwHx8=

This may be as designed but it felt unexpected to me.

When setting CSS variables, if the variable name starts with --, the rest of the line silently skips compilation.

Is this an intentional feature/escape sequence to instruct the compiler to skip the line? I couldn't find it stated anywhere as being intentional.

@chrisdeeming
Copy link
Author

Found the documentation now:
https://sass-lang.com/documentation/style-rules/declarations/#custom-properties

Interpolation is the solution!

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

No branches or pull requests

1 participant