mirror of
https://github.com/NativeScript/NativeScript.git
synced 2025-11-05 13:26:48 +08:00
fix(css): borderColor parse handling for hsl(a) color values (#9857)
This commit is contained in:
@@ -876,7 +876,7 @@ function parseBorderColor(value: string): { top: Color; right: Color; bottom: Co
|
||||
bottom: undefined,
|
||||
left: undefined,
|
||||
};
|
||||
if (value.indexOf('rgb') === 0) {
|
||||
if (value.indexOf('rgb') === 0 || value.indexOf('hsl') === 0) {
|
||||
result.top = result.right = result.bottom = result.left = new Color(value);
|
||||
|
||||
return result;
|
||||
|
||||
Reference in New Issue
Block a user