closure-stylesheets icon indicating copy to clipboard operation
closure-stylesheets copied to clipboard

Parsing error with CSS vars

Open oliverfernandez opened this issue 7 years ago • 4 comments

closure-stylesheets is throwing a parsing error when a CSS file uses CSS3 variables

For example, the following file

:root {
--color: red;
}

div {
 background-color: var(--color);
}

throws

Compiler parsing error: Parse error in test.css at line 2 column 1:
--color: red;
^

Is there any quick solution to prevent this, or a change in closure-stylesheets is necessary?

oliverfernandez avatar Mar 23 '17 10:03 oliverfernandez

You are correct. We should implement support. Any volunteers?

iflan avatar Mar 31 '17 13:03 iflan

Ping. Can someone look at the pull request?

ribrdb avatar Jul 11 '17 23:07 ribrdb

@ribrdb Thanks for PR!

Also pinging here

oliverfernandez avatar Jan 12 '18 12:01 oliverfernandez

I think this is fixed in the latest release of closure stylesheets. At least the parse error -- it doesn't rename variables.

ribrdb avatar Jan 12 '18 16:01 ribrdb