add 'none' keyword to PISS shadow definiton that equals empty array
This commit is contained in:
parent
a8092de638
commit
ab8907909b
5 changed files with 16 additions and 6 deletions
|
|
@ -32,7 +32,11 @@ export const serialize = (ruleset) => {
|
|||
} else {
|
||||
switch (directive) {
|
||||
case 'shadow':
|
||||
return ` ${directive}: ${value.map(serializeShadow).join(', ')}`
|
||||
if (value.length > 0) {
|
||||
return ` ${directive}: ${value.map(serializeShadow).join(', ')}`
|
||||
} else {
|
||||
return ` ${directive}: none`
|
||||
}
|
||||
default:
|
||||
return ` ${directive}: ${value}`
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue