Skip to content

Commit

Permalink
add failing svelte syntax test case
Browse files Browse the repository at this point in the history
  • Loading branch information
bradlc committed Apr 26, 2021
1 parent 9b1e843 commit 8c1df0f
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
4 changes: 4 additions & 0 deletions jit/tests/svelte-syntax.test.css
Expand Up @@ -7,6 +7,10 @@
--tw-ring-offset-shadow: 0 0 #0000;
--tw-ring-shadow: 0 0 #0000;
}
.bg-red-500 {
--tw-bg-opacity: 1;
background-color: rgba(239, 68, 68, var(--tw-bg-opacity));
}
@media (min-width: 1024px) {
.lg\:hover\:bg-blue-500:hover {
--tw-bg-opacity: 1;
Expand Down
6 changes: 6 additions & 0 deletions jit/tests/svelte-syntax.test.svelte
Expand Up @@ -3,3 +3,9 @@
</script>

<button class:lg:hover:bg-blue-500={current === 'foo'}>Click me</button>

<button
class:bg-red-500={current === 'foo'}
>
Click me
</button>

0 comments on commit 8c1df0f

Please sign in to comment.