adamjimenez / shiftedit

ShiftEdit IDE
Other
82 stars 18 forks source link

css custom properties are marked as errors by linter #362

Closed francisbarton closed 4 years ago

francisbarton commented 5 years ago

I think this is more likely an issue with Ace, but thought worth checking in with you here first. Where I have:

#element  {
    --margin: 1rem;
    margin: calc(var(--margin) * -1);
}

in my CSS, this is flagged as an error (Expected RBRACE at line 2 col 5). But as far as I can see this should be correct CSS (MDN web docs).

adamjimenez commented 4 years ago

It is ace or more specifically csslint.

Here's the bug