CSSLint / csslint

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

Error when using named css grid: Unexpected token '[' #749

Open ScreamingTaco opened 5 years ago

ScreamingTaco commented 5 years ago

I have a section of css code that makes use of CSS grid's ability to name rows and columns to make them easier to use. When I define it like this:

.page-layout { display: grid; grid-template-rows: [header] 75px [title] auto [summary] auto [characters] auto; ... }

I get the following error from CSSLint:

Unexpected token '[' on <line of the grid-template-rows>, col <position of the first [ at header>

The code works, but CSSLint still thinks its wrong.