csslint icon indicating copy to clipboard operation
csslint copied to clipboard

Unexpected token 1fr on line 159

Open arfatrahaman opened this issue 2 years ago • 1 comments

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.

arfatrahaman avatar Aug 05 '22 08:08 arfatrahaman

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 */

mattiacci avatar Aug 08 '22 09:08 mattiacci