fix: do not collapse whitespace-only css vars

pull/7303/head
Geoff Rich 5 years ago
parent 435d14aafe
commit d8e9d1117a

@ -145,6 +145,8 @@ class Declaration {
? this.node.value.children[0]
: this.node.value;
if (first.type === 'Raw' && /^\s+$/.test(first.value)) return;
let start = first.start;
while (/\s/.test(code.original[start])) start += 1;

@ -1 +1 @@
:root{--root-test:20}div.svelte-xyz{--test:10}
:root{--root-test:20}div.svelte-xyz{--test:10}div.svelte-xyz{--foo: }

@ -7,4 +7,8 @@
div {
--test: 10;
}
div {
--foo: ;
}
</style>

Loading…
Cancel
Save