fix(box-shadow): support for 'none' (#9418)

This commit is contained in:
Janos Hrubos
2021-05-25 21:22:35 -07:00
committed by GitHub
parent 4ef49f28aa
commit 263c920cb8
+4
View File
@@ -40,6 +40,10 @@ export function parseCSSShadow(value: string): CSSShadow {
const first = parts[0];
const last = parts[parts.length - 1];
if (first === 'none') {
return null;
}
let colorRaw = 'black';
if (!isLength(first) && first !== 'inset') {
colorRaw = first;