avoid string manipulation bugs by not minifying combinators if cascade: true (#743)

pull/746/head
Rich Harris 8 years ago
parent 95606ad0f8
commit bdb34a243c

@ -39,7 +39,7 @@ class Rule {
code.overwrite(c, selector.node.start, separator);
}
selector.minify(code);
if (!cascade) selector.minify(code);
c = selector.node.end;
}
});

@ -0,0 +1,3 @@
export default {
cascade: false
};

@ -0,0 +1 @@
.test[svelte-xyz]>div[svelte-xyz]{color:#0af}

@ -0,0 +1 @@
<div svelte-xyz="" class="test"><div svelte-xyz="">Testing...</div></div>

@ -0,0 +1,11 @@
<div class="test">
<div>
Testing...
</div>
</div>
<style>
.test > div {
color: #0af;
}
</style>
Loading…
Cancel
Save