Skip to content

Commit 4774d10

Browse files
committed
chore: better test
1 parent 091f02c commit 4774d10

File tree

2 files changed

+42
-0
lines changed

2 files changed

+42
-0
lines changed

packages/svelte/tests/migrate/samples/is-not-where-has/input.svelte

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<script>
2+
function is(){}
3+
function where(){}
4+
function not(){}
5+
function has(){}
6+
7+
// looks like css but it's not in style tag
8+
const x = {
9+
div:is(42),
10+
span:where(42),
11+
form:not(42),
12+
input:has(42),
13+
}
14+
</script>
15+
16+
what if i'm talking about `:has()` in my blog?
17+
18+
```css
19+
:has(.is_cool)
20+
```
21+
122
<style lang="postcss">
223
div:has(span){}
324
div > :not(span){}

packages/svelte/tests/migrate/samples/is-not-where-has/output.svelte

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,24 @@
1+
<script>
2+
function is(){}
3+
function where(){}
4+
function not(){}
5+
function has(){}
6+
7+
// looks like css but it's not in style tag
8+
const x = {
9+
div:is(42),
10+
span:where(42),
11+
form:not(42),
12+
input:has(42),
13+
}
14+
</script>
15+
16+
what if i'm talking about `:has()` in my blog?
17+
18+
```css
19+
:has(.is_cool)
20+
```
21+
122
<style lang="postcss">
223
div:has(:global(span)){}
324
div > :not(:global(span)){}

0 commit comments

Comments
 (0)