mirror of https://github.com/sveltejs/svelte
- the change in #1705 introduced a small bug for users who were relying on assigning global CSS variables via the :root selector - this change adds a small exemption to avoid prefixing :root with the random prefix that svelte addspull/3250/head
parent
2664260527
commit
1909bb43d9
@ -1 +1 @@
|
|||||||
div.svelte-xyz{--test:10}
|
:root{--root-test:20}div.svelte-xyz{--test:10}
|
@ -1,7 +1,10 @@
|
|||||||
<div></div>
|
<div></div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
|
:root {
|
||||||
|
--root-test: 20;
|
||||||
|
}
|
||||||
div {
|
div {
|
||||||
--test: 10;
|
--test: 10;
|
||||||
}
|
}
|
||||||
</style>
|
</style>
|
||||||
|
Loading…
Reference in new issue