A well-tested CSS minifier providing fast and efficient CSS optimization and minification.
93
Quality
Pending
Does it follow best practices?
Impact
93%
1.17xAverage score across 10 eval scenarios
Pending
The risk profile of this skill
A command-line tool that validates CSS files and reports any invalid properties found in the stylesheets.
@generates
The tool should accept CSS content as a string and return an array of invalid property names found in the stylesheet. The function should leverage CSS processing capabilities to identify properties that don't conform to CSS specifications.
/**
* Validates CSS content and returns an array of invalid property names.
*
* @param {string} cssContent - The CSS content to validate
* @returns {Array<string>} Array of invalid property names found
*/
function validateCSS(cssContent) {
// IMPLEMENTATION HERE
}
module.exports = { validateCSS };Input CSS:
.box {
colr: red;
padding: 10px;
}Expected Output:
['colr']Input CSS:
.container {
widht: 100px;
heigth: 200px;
background-color: blue;
}Expected Output:
['widht', 'heigth']Input CSS:
.valid {
color: blue;
width: 100px;
margin: 20px;
}Expected Output:
[]Provides CSS minification and validation capabilities.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10