linter-csslint icon indicating copy to clipboard operation
linter-csslint copied to clipboard

CSS Variables

Open McRaeSoftware opened this issue 4 years ago • 0 comments

When trying to use CSS variables the linter constantly displays the error "Expected RBRACE at line number, col number"

example CSS;

:root { /* these variables flag errors -> "Expected RBRACE at line number, col number"*/ --primaryColour: #23d5ab; --secondaryColour: #17a2b8; }

.example { background-color: Black; /*this line displayes error -> " Expected color but found 'var(--primaryColour)" */ color: var(--primaryColour); }

McRaeSoftware avatar Jan 04 '21 14:01 McRaeSoftware