mirror of https://github.com/sveltejs/svelte
fix: bump specificity on all members of a selector list (#10730)
Previously, only `div span` in `div span, div div { .. }` would've gotten the specificity bumppull/10716/head
parent
b1267b03b6
commit
304db0d5b2
@ -0,0 +1,5 @@
|
||||
---
|
||||
"svelte": patch
|
||||
---
|
||||
|
||||
fix: bump specificity on all members of a selector list
|
@ -0,0 +1,6 @@
|
||||
div.svelte-xyz {
|
||||
color: red;
|
||||
}
|
||||
div.svelte-xyz span:where(.svelte-xyz), div.svelte-xyz div:where(.svelte-xyz) {
|
||||
color: blue;
|
||||
}
|
@ -0,0 +1 @@
|
||||
<div class="svelte-xyz"><span class="svelte-xyz">text</span><div class="svelte-xyz">text</div></div>
|
@ -0,0 +1,13 @@
|
||||
<div>
|
||||
<span>text</span>
|
||||
<div>text</div>
|
||||
</div>
|
||||
|
||||
<style>
|
||||
div {
|
||||
color: red;
|
||||
}
|
||||
div span, div div {
|
||||
color: blue;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue