Merge pull request #746 from sveltejs/gh-743

avoid string manipulation bugs by not minifying combinators if `cascade: true`
pull/751/head
Rich Harris 8 years ago committed by GitHub
commit 736a2f1a3d

@ -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