MVCoconut / coconut.vdom

Coconut rendering through virtual-dom.
The Unlicense
19 stars 8 forks source link

Cannot use CSS custom properties (`--bg-color: red`) with style object #44

Open T1mL3arn opened 2 years ago

T1mL3arn commented 2 years ago
final myStyle = {
  "--color": "red",
  color: "var(--color)",
};

return <span style={myStyle}>hello</span>;

In runtime:

SyntaxError: missing name after . operator

Libs version

coconut.ui: [0.12.0]
coconut.vdom: [0.10.1]
clarkjones commented 1 year ago

Just ran into the same issue. Using a ref to add it instead for now.