-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
Use -webkit-linear-gradient
instead of -webkit-gradient
when the linear-gradient
contains var(...)
.
#1515
Comments
Why?
You need to send PR for that. Since it is a feature for old browsers, I will not have time to implement it (too busy on preparing the slides for the talk). |
The issue in autoprefixer is that it thinks that the function has a single argument and proceeds to transform it under that assumption to That limitation is reasonable, however I think Autoprefixer should be safer and either
Thankfully, we can use In other words, Autoprefixer assumes custom CSS properties contain 1 and only 1 value. But they could contain multiple values.
Sure, no rush, I can try sending a PR later. We can also always use |
INPUT
GOT
WANT
In these cases, it is safer to use
-webkit-linear-gradient
instead of-webkit-gradient
:The text was updated successfully, but these errors were encountered: