Add explanatory comment

pull/7303/head
Geoff Rich 5 years ago
parent 6eec9cbaaa
commit 8916563d54

@ -145,6 +145,8 @@ class Declaration {
? this.node.value.children[0]
: this.node.value;
// Don't minify whitespace in custom properties, since some browsers (Chromium < 99)
// treat --foo: ; and --foo:; differently
if (first.type === 'Raw' && /^\s+$/.test(first.value)) return;
let start = first.start;

Loading…
Cancel
Save