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
Build a tool that normalizes CSS stylesheets by converting font-weight keyword values to their numeric equivalents.
Your tool should process CSS input and convert font-weight values according to standard CSS specifications:
The tool should handle:
font-weight: normal, it converts to font-weight: 400 @testfont-weight: bold, it converts to font-weight: 700 @test@generates
/**
* Normalizes CSS by converting font-weight keywords to numeric values.
*
* @param {string} css - The CSS string to process
* @returns {string} The processed CSS with normalized font-weight values
*/
function normalizeFontWeights(css) {
// IMPLEMENTATION HERE
}
module.exports = { normalizeFontWeights };Provides CSS optimization and minification capabilities.
docs
evals
scenario-1
scenario-2
scenario-3
scenario-4
scenario-5
scenario-6
scenario-7
scenario-8
scenario-9
scenario-10