0
0
mirror of https://github.com/sveltejs/svelte.git synced 2024-12-01 17:30:59 +01:00

add test for class: directive special characters

This commit is contained in:
Richard Harris 2019-06-06 07:44:15 -04:00
parent 3895a89c3b
commit 234db33eb4
3 changed files with 13 additions and 0 deletions

View File

@ -0,0 +1 @@
.foo\:bar.svelte-xyz{color:red}

View File

@ -0,0 +1 @@
<div class="svelte-xyz foo:bar">Hello world</div>

View File

@ -0,0 +1,11 @@
<script>
const enabled = true;
</script>
<div class:foo:bar={enabled}>Hello world</div>
<style>
.foo\:bar {
color: red;
}
</style>