csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Automated linting of Cascading Stylesheets

Results 103 csslint issues
Sort by recently updated
recently updated
newest added

Float is not a good usage anymore, margin too, if you want your page to be responsive

Code like the following results in an 'expected RBRACE' error: ``` ol.foo { --bar: 20px; ... } ```

Hello, I faced with an issue when trying to analyze [bootstrap project](https://github.com/twbs/bootstrap) from CLI (csslint was installed globally: npm:3.10.9, csslint:1.0.4). **cmd:** `csslint --format=json ./` **stderr:** ``` C:\Users\xxx\AppData\Roaming\npm\node_modules\csslint\dist\csslint-node.js:3011 ret = JSON.stringify(this.json);...

### STR: 1. Visit http://csslint.net/ 2. Enter: ```css @keyframes action-bar-spin { 0% { transform: rotate(0turn); } 100% { transform: rotate(1turn); } } ``` ### Expected: No errors ### Actual: ```  ...

Regarding [“Disallow too many floats”](https://github.com/CSSLint/csslint/wiki/Disallow-too-many-floats), could you expand on “too many” and add data? (At the moment and from my perspective, the rule seems so weak as to better be...

[“Disallow universal selector”](https://github.com/CSSLint/csslint/wiki/Disallow-universal-selector) touches on a valid but practically irrelevant point (intentionally phrased strongly :): yes, universal selectors have an impact on performance, but no, this impact is too small...

[“Disallow `!important`”](https://github.com/CSSLint/csslint/wiki/Disallow-%21important) outright bans a [critical part of the CSS cascade](https://www.w3.org/TR/CSS22/cascade.html#important-rules); [there’s nothing wrong with `!important`](https://meiert.com/en/blog/important/)—just because the occasional developer struggles putting `!important` to good use seems to be a...

[“Disallow IDs in selectors”](https://github.com/CSSLint/csslint/wiki/Disallow-IDs-in-selectors) outright bans a [critical part of the CSS cascade](https://www.w3.org/TR/CSS22/cascade.html#specificity). There’s nothing wrong with IDs (wrong use is not an argument, as everything can be used wrongly...

[“Disallow negative text indent”](https://github.com/CSSLint/csslint/wiki/Disallow-negative-text-indent) doesn’t seem to provide strong reasons not to use an “outdent” (there are some good points but nothing so strong as to warrant an outright ban)....

[“Disallow adjoining classes”](https://github.com/CSSLint/csslint/wiki/Disallow-adjoining-classes) doesn’t seem to provide any strong reasons against combining classes; the only such reason, lack of support, has practically speaking long fallen away as pretty much no...