Skip to content

Commit

Permalink
add test for class: directive special characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jun 6, 2019
1 parent 3895a89 commit 234db33
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 0 deletions.
1 change: 1 addition & 0 deletions test/css/samples/directive-special-character/expected.css
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
.foo\:bar.svelte-xyz{color:red}
1 change: 1 addition & 0 deletions test/css/samples/directive-special-character/expected.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<div class="svelte-xyz foo:bar">Hello world</div>
11 changes: 11 additions & 0 deletions test/css/samples/directive-special-character/input.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<script>
const enabled = true;
</script>

<div class:foo:bar={enabled}>Hello world</div>

<style>
.foo\:bar {
color: red;
}
</style>

0 comments on commit 234db33

Please sign in to comment.