mirror of https://github.com/sveltejs/svelte
use bindings when matching attribute selector against element (#3281)
parent
981f30d3e9
commit
45a54c1aa4
@ -0,0 +1 @@
|
|||||||
|
details[open].svelte-xyz{color:red}
|
@ -0,0 +1,11 @@
|
|||||||
|
<script>
|
||||||
|
let open = false;
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<details bind:open>Hello</details>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
details[open] {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue