lightningcss
lightningcss copied to clipboard
@property initial-value parsing error
@property --my-color {
syntax: "<color>";
inherits: true;
initial-value: color-mix(in srgb, currentColor 15%, transparent);
}
It seems this may be against the spec, but it works in Chrome/Firefox/Safari and I'm not sure of an alternative 🤔.
Thanks, this is a bug. Currently color-mix is only parsed if we can resolve it to a value at build time, and currentColor prevents that. We should preserve the original value as is in that case.