Skip to content
This repository has been archived by the owner on Feb 23, 2022. It is now read-only.

Parsing error with CSS vars #116

Open
oliverfernandez opened this issue Mar 23, 2017 · 4 comments
Open

Parsing error with CSS vars #116

oliverfernandez opened this issue Mar 23, 2017 · 4 comments

Comments

@oliverfernandez
Copy link

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?

@iflan
Copy link
Member

iflan commented Mar 31, 2017

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

ribrdb added a commit to ribrdb/closure-stylesheets that referenced this issue Jun 9, 2017
@ribrdb
Copy link

ribrdb commented Jul 11, 2017

Ping. Can someone look at the pull request?

@oliverfernandez
Copy link
Author

@ribrdb Thanks for PR!

Also pinging here

@ribrdb
Copy link

ribrdb commented Jan 12, 2018

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

3 participants