csslint
csslint copied to clipboard
CSS Lint should do validation
was: wrong shorthand font syntax should return an error
Rules like these:
.selector {
font: 2em;
}
.selector {
font: bold 2em;
}
Should return an error as the shorthand syntax requires at least to declare a font-size and a font-family. The above may work in IE6 quirks, but should fail in modern browsers.
I think this falls under a more general category of "CSS Lint should do CSS validation." Definitely on the roadmap.
First bits of this are done. Need to move onto the new, more complicated properties.
I somewhat question the necessity of this given the existence of https://github.com/twolfson/css-validator