Skip to content

Commit f6ba25c

Browse files
committed
That nested rule wasn't empty
1 parent ecff925 commit f6ba25c

File tree

2 files changed

+12
-2
lines changed

2 files changed

+12
-2
lines changed

packages/svelte/tests/css/samples/nested-css/expected.css

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,17 +29,22 @@
2929
& .b:where(.svelte-xyz) {
3030
color: green;
3131

32-
/* (empty) .c:where(.svelte-xyz) {
32+
.c:where(.svelte-xyz) {
3333
& & {
3434
color: red;
3535
}
36-
}*/
36+
}
3737
}
3838

3939
& & {
4040
color: green;
4141
}
4242

43+
/* silly but valid */
44+
&& {
45+
color: rebeccapurple;
46+
}
47+
4348
.container:where(.svelte-xyz) & {
4449
color: green;
4550
}

packages/svelte/tests/css/samples/nested-css/input.svelte

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@
5454
color: green;
5555
}
5656
57+
/* silly but valid */
58+
&& {
59+
color: rebeccapurple;
60+
}
61+
5762
.container & {
5863
color: green;
5964
}

0 commit comments

Comments
 (0)