CssLint: Unknown property "fill"

I am changing the color of the SVG path via css:

.compute .svg path { fill: #fff; } 

It works fine, but when running cssLint on it, I had this warning:

 Unknown property: "fill" 

Is this a cssLint error? Or is it bad to use this property in css to change SVG path attributes?

+5
source share
1 answer

No, this is not bad, this is the right way to do it. cssLint does not support these properties. This is just one of his many problems. I suppose you could hack it: https://github.com/CSSLint/csslint/wiki/Working-with-Rules . See also this problem: https://github.com/CSSLint/csslint/issues/283 .

+3
source

Source: https://habr.com/ru/post/1204496/


All Articles