bracey.vim icon indicating copy to clipboard operation
bracey.vim copied to clipboard

Using CSS global variables displays error

Open ic768 opened this issue 4 years ago • 1 comments

When using this code at the top of a CSS file, a pink circle pops up at the webpage stating "2:2: Expected RBRACE at line 2, col 2."

:root {
	--mySize:50px;
}

The double-dash seems to be the problem. The major annoyance is that after using these variables, the auto-updating of the website breaks completely, until the double-dashes have been removed.

ic768 avatar Nov 30 '20 16:11 ic768

yikes! That's pretty bad. Thanks for the straight forward repro.

I'm guessing the CSS parser or linter are way out of date, this project predates CSS variables. I'll give updating a shot when I get a chance.

turbio avatar Jan 03 '21 07:01 turbio