Open ebshimizu opened 7 months ago
According to the CSS spec the alpha parameter in the rgba color string is optional:
rgba
<modern-rgba-syntax> = rgba( [ <number> | <percentage> | none ]{3} [ / [ <alpha-value> | none ] ]? )
Tinycolor fails to parse cases where rgba() colors string have no alpha because it expects exactly four values when it should be expecting three and an optional fourth: https://github.com/bgrins/TinyColor/blob/b49018c9f2dbca313d80d7a4dad25e26143cfe01/tinycolor.js#L1039
rgba()
According to the CSS spec the alpha parameter in the
rgba
color string is optional:Tinycolor fails to parse cases where
rgba()
colors string have no alpha because it expects exactly four values when it should be expecting three and an optional fourth: https://github.com/bgrins/TinyColor/blob/b49018c9f2dbca313d80d7a4dad25e26143cfe01/tinycolor.js#L1039