Csslint Warning - box-sizing property is not supported in IE6 and IE7

I am using CSSLint for the first time and am trying to do it now. When I write the following CSS

.div { box-sizing: border-box; border: 1px solid red; padding: 5px; width: 100px; } 

Then when I ran Warning - The box-sizing property isn't supported in IE6 and IE7.

I also changed "box-sizing": false to "box-sizing": true in my .csslintrc file.

But I still get this warning. How can I solve this problem?

+3
html css css3 csslint
source share
2 answers

I believe the correct flag is --ignore=box-sizing , so

 csslint --ignore=box-sizing css/ 

You do not know how to install this in .csslintrc, but if you use the SublimeLinter-csshint package, you can set the flag in the settings of the SublimeLinter package.

You can also add this parameter to the CSS file itself, since csslint v0.9.10 is like this (do not add any spaces):

 /*csslint box-sizing: false*/ 
+6
source share

At the command line, you can turn off the model model warning:

 csslint --ignore=box-model test.css 

Or inside the .csslintrc file by adding the following:

 --ignore=box-model 

Documentation

-one
source share

All Articles