peterbe / premailer

Turns CSS blocks into style attributes
https://premailer.io
BSD 3-Clause "New" or "Revised" License
1.06k stars 188 forks source link

To support css var #257

Open letitfly opened 3 years ago

letitfly commented 3 years ago

color: var(--color);

causes error: ERROR CSSVariable: Missing token for production ident: ('CHAR', '-', 155, 12) ERROR CSSVariable: Missing token for production end FUNC ")" ERROR PropertyValue: No match: ('CHAR', ')', 155, 19) ERROR PropertyValue: Unknown syntax or no value: var(--color) ERROR CSSStyleDeclaration: Syntax Error in Property: color: var(--color)

css var may not be useful in a email, but I am using it as a general css inline tool. thanks

peterbe commented 3 years ago

I suspect that's a limitation of cssutils which isn't getting much love and attention these days.