Skip to content

Commit f5dbd57

Browse files
committed
fix: support hsla in radial
1 parent 2111653 commit f5dbd57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/radial.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,5 +129,5 @@ export function parseRadialGradient(input: string): RadialResult {
129129

130130
function isColor(v: string) {
131131
if (/(circle|ellipse|at)/.test(v)) return false
132-
return /^(rgba?|hwb|hsl|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(v)
132+
return /^(rgba?|hwb|hsla?|lab|lch|oklab|color|#|[a-zA-Z]+)/.test(v)
133133
}

0 commit comments

Comments
 (0)