mirror of https://github.com/sveltejs/svelte
Excluding CSS type element selectors closes #9320 closes #8587pull/9549/head
parent
b59387b046
commit
fcdc02e51b
@ -0,0 +1,9 @@
|
||||
button.svelte-xyz {
|
||||
color: red;
|
||||
|
||||
+ .abc.svelte-xyz {
|
||||
color: purple;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
<button>
|
||||
<div class="foo"/>
|
||||
</button>
|
||||
<div class="abc">
|
||||
|
||||
</div>
|
||||
<style>
|
||||
button {
|
||||
color: red;
|
||||
|
||||
+ .abc {
|
||||
color: purple;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,9 @@
|
||||
button.svelte-xyz {
|
||||
color: red;
|
||||
|
||||
> .abc.svelte-xyz {
|
||||
color: purple;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
@ -0,0 +1,17 @@
|
||||
<button>
|
||||
<div class="abc"/>
|
||||
<div class="bar">
|
||||
<div class="abc"/>
|
||||
</div>
|
||||
</button>
|
||||
<style>
|
||||
button {
|
||||
color: red;
|
||||
|
||||
> .abc {
|
||||
color: purple;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@ -0,0 +1,9 @@
|
||||
button.svelte-xyz {
|
||||
color: red;
|
||||
|
||||
.hello.svelte-xyz {
|
||||
color: pink;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
@ -0,0 +1,16 @@
|
||||
<button>
|
||||
<div class="bar">
|
||||
<div class="hello"/>
|
||||
</div>
|
||||
</button>
|
||||
<style>
|
||||
button {
|
||||
color: red;
|
||||
|
||||
.hello {
|
||||
color: pink;
|
||||
}
|
||||
|
||||
color: black;
|
||||
}
|
||||
</style>
|
||||
@ -1,3 +1,5 @@
|
||||
div.svelte-xyz {
|
||||
@apply --funky-div;
|
||||
/* DISABLED THIS FOR CSS NESTING */
|
||||
/* @apply --funky-div; */
|
||||
color: red;
|
||||
}
|
||||
|
||||
Loading…
Reference in new issue