Merge branch 'master' into gh-741

pull/747/head
Rich Harris 8 years ago
commit 9aff8ea48f

@ -1,5 +1,11 @@
# Svelte changelog # Svelte changelog
## 1.28.0
* Support `ref:foo` as a CSS selector ([#693](https://github.com/sveltejs/svelte/issues/693))
* Prevent magic-string bugs by only minifying CSS combinators if `cascade: false` ([#743](https://github.com/sveltejs/svelte/issues/743))
* Don't throw an error if component is destroyed twice ([#643](https://github.com/sveltejs/svelte/issues/643))
## 1.27.0 ## 1.27.0
* Minify CSS and remove unused styles ([#697](https://github.com/sveltejs/svelte/issues/697)) * Minify CSS and remove unused styles ([#697](https://github.com/sveltejs/svelte/issues/697))

@ -1,6 +1,6 @@
{ {
"name": "svelte", "name": "svelte",
"version": "1.27.0", "version": "1.28.0",
"description": "The magical disappearing UI framework", "description": "The magical disappearing UI framework",
"main": "compiler/svelte.js", "main": "compiler/svelte.js",
"files": [ "files": [

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