CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.76k stars 484 forks source link

Invalid value for background does not throw error #769

Open Pranomvignesh opened 4 years ago

Pranomvignesh commented 4 years ago

I am using csslint npm package -v1.0.5 This is my test code .

var csslint = require("csslint");
var linted = csslint.CSSLint.verify(`
.sample{
    background:efwf;
}
`);
console.log(linted.messages)

Output :

[]

I have tried this in csslint website

Screen Shot 2020-07-13 at 6 28 24 PM

When i tried the same in https://jigsaw.w3.org/css-validator/validator, I am getting expected results.

Screen Shot 2020-07-13 at 6 28 54 PM

Do i have to configure something in csslint to achieve the same as i expect ? Correct me if i am wrong.