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
Unexpected unknown function "-webkit-gradient"
& "color-stop"
function-no-unknown
#5960
Comments
@adhamfarrag Thanks for the report and for using the template. It looks like those are non-standard functions used in webkit nearly 15 years ago. They don't appear to be part of the CSS specs. You can use the {
"rules": {
"function-no-unknown": [true, { "ignoreFunctions": ["color-stop", "-webkit-gradient"] }]
}
} |
Since this rule has been added to stylelint-config-recommended quite recently, it deserves to be exhaustive. We have to remember that stylelint is used on older codebases that have to be maintained. |
- webkit-gradient - color-stop - from - to - light-dark stylelint/stylelint#5960 stylelint/stylelint#7226
|
#6539 (comment) |
What steps are needed to reproduce the bug?
I'm having this css class in my project. It has
-webkit-gradient
and inside of it, it hascolor-stop
.What Stylelint configuration is needed to reproduce the bug?
It's Nuxt stylelint-module
How did you run Stylelint?
Nuxt.js handles that.
Which version of Stylelint are you using?
14.4.0
What did you expect to happen?
To not have bugs or to find it supported in Stylelint documentations.
What actually happened?
Does the bug relate to non-standard syntax?
No.
Proposal to fix the bug
No response
The text was updated successfully, but these errors were encountered: