csslint icon indicating copy to clipboard operation
csslint copied to clipboard

CSS Lint should do validation

Open thierryk opened this issue 14 years ago • 3 comments

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.

thierryk avatar Jun 16 '11 04:06 thierryk

I think this falls under a more general category of "CSS Lint should do CSS validation." Definitely on the roadmap.

nzakas avatar Jun 16 '11 05:06 nzakas

First bits of this are done. Need to move onto the new, more complicated properties.

nzakas avatar Oct 24 '11 22:10 nzakas

I somewhat question the necessity of this given the existence of https://github.com/twolfson/css-validator

cvrebert avatar Apr 13 '14 17:04 cvrebert