validator
validator copied to clipboard
Validator on max() and min()
CSStree-validator flags errors on usage of max() and min() on font-sizes and widths. Could you please explain why?
Any updates on this?
Workaround:
.stylelintrc.json
{
"extends": "stylelint-config-standard-scss",
"plugins": [
"stylelint-csstree-validator"
],
"rules": {
"csstree/validator": {
"properties": {
"font-size": "| min(<length-percentage>, <length-percentage>) | max(<length-percentage>, <length-percentage>)",
"width": "| min(<length-percentage>, <length-percentage>) | max(<length-percentage>, <length-percentage>)"
}
},
"media-feature-range-notation": "prefix",
"selector-class-pattern": null
}
}