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

Error when using CSS3's var() in rgba() #658

Closed
philSixZero opened this issue Feb 13, 2018 · 2 comments
Closed

Error when using CSS3's var() in rgba() #658

philSixZero opened this issue Feb 13, 2018 · 2 comments

Comments

@philSixZero
Copy link

philSixZero commented Feb 13, 2018

Description

When calling rgba() and passing a CSS3 variable, gulp-sass results in an error:

:root {
  --color: 0,0,0,.5; /* Black with an alpha of 50% */
}

div {
  border-color: rgba(var(--color)); /* CSS3 is able to do this, gulp-sass throws an error */
}

Result

Error: overloaded function 'rgba' given wrong number of arguments

Conclusion

Guess this is a 🐛

@allen-garvey
Copy link

See sass/node-sass#2251. I had the same problem, but when I tried the workaround suggested (use RGBA instead of rbga) I was able to get it to work.

@xzyfer
Copy link
Collaborator

xzyfer commented Mar 10, 2018

Fixed in 4.8.0

@xzyfer xzyfer closed this as completed Mar 10, 2018
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

3 participants