fix: hsl/hsv support for css %

This commit is contained in:
Martin Guillon
2021-08-07 15:14:02 +02:00
parent 02d90f7949
commit e2f579aa1b

View File

@@ -415,6 +415,7 @@ function parseColorWithAlpha(value: string): any {
const parts = value
.replace(/(rgb|hsl|hsv)a?\(/, '')
.replace(')', '')
.replace(/%/g, '')
.trim()
.split(',');