mirror of https://github.com/sveltejs/svelte
fix: support attribute selector inside :global() (#11135)
* fix: support attribute selector inside :global() * Update Selector.jspull/11202/head
parent
ad00cad761
commit
a510c6a37f
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
support attribute selector inside :global()
|
@ -0,0 +1 @@
|
||||
.anim-checkbox.svelte-xyz[data-state='checked']{background-color:red}
|
@ -0,0 +1,6 @@
|
||||
<style>
|
||||
.anim-checkbox:global([data-state='checked']) {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
<div class="anim-checkbox"></div>
|
@ -0,0 +1 @@
|
||||
[]
|
@ -0,0 +1,6 @@
|
||||
<style>
|
||||
.anim-checkbox:global([data-state='checked']) {
|
||||
background-color: red;
|
||||
}
|
||||
</style>
|
||||
<div class="anim-checkbox"></div>
|
Loading…
Reference in new issue