CSSLint / csslint

Automated linting of Cascading Stylesheets
http://csslint.net
Other
4.76k stars 483 forks source link

Unexpected token 1fr on line 159 #778

Open arfatrahaman opened 2 years ago

arfatrahaman commented 2 years ago

Hello, I need some help. I build a responsive website using CSS grid. Everything looks good and perfect. After completing it I upload it to my hosting but when I check it from my mobile it did not look the same as what I made. My grid-template- columns are not working. It gives me an error message: "Unexpected token 1fr on line 159, column ...." I know that the grid works very well. grid-template-columns is not taken as a code for CSS. Now my website looks bullshit. If anyone has a solution in it plz help me.

mattiacci commented 2 years ago

The root cause is that csslint is no longer maintained: https://github.com/CSSLint/csslint/issues/754.

The workaround for general issues is to wrap the code in an ignore block, but IIRC that doesn't help with parsing issues like this.

/* csslint ignore:start */
.foo {}
/* csslint ignore:end */