-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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
- Loading branch information
1 parent
2d2508a
commit 8b1a269
Showing
3 changed files
with
24 additions
and
0 deletions.
There are no files selected for viewing
3 changes: 3 additions & 0 deletions
3
packages/svelte/tests/css/samples/at-rule-nested-class/_config.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
import { test } from '../../test'; | ||
|
||
export default test({}); |
9 changes: 9 additions & 0 deletions
9
packages/svelte/tests/css/samples/at-rule-nested-class/expected.css
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
|
||
@starting-style { | ||
.card.svelte-xyz{ | ||
height: 0; | ||
} | ||
} | ||
.card.svelte-xyz { | ||
color: red; | ||
} |
12 changes: 12 additions & 0 deletions
12
packages/svelte/tests/css/samples/at-rule-nested-class/input.svelte
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="card"></div> | ||
|
||
<style> | ||
@starting-style { | ||
.card{ | ||
height: 0; | ||
} | ||
} | ||
.card { | ||
color: red; | ||
} | ||
</style> |