Skip to content

Commit 8b1a269

Browse files
authored
chore: add css regression test (#11373)
at rules are now left alone and you can have nested css in them which is scoped correctly. This just adds a test so we don't regress in the future closes #9267
1 parent 2d2508a commit 8b1a269

File tree

3 files changed

+24
-0
lines changed

3 files changed

+24
-0
lines changed
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
import { test } from '../../test';
2+
3+
export default test({});
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
2+
@starting-style {
3+
.card.svelte-xyz{
4+
height: 0;
5+
}
6+
}
7+
.card.svelte-xyz {
8+
color: red;
9+
}
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
<div class="card"></div>
2+
3+
<style>
4+
@starting-style {
5+
.card{
6+
height: 0;
7+
}
8+
}
9+
.card {
10+
color: red;
11+
}
12+
</style>

0 commit comments

Comments
 (0)