mirror of https://github.com/sveltejs/svelte
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 #9267pull/11378/head
parent
2d2508a2cd
commit
8b1a26904a
@ -0,0 +1,3 @@
|
|||||||
|
import { test } from '../../test';
|
||||||
|
|
||||||
|
export default test({});
|
@ -0,0 +1,9 @@
|
|||||||
|
|
||||||
|
@starting-style {
|
||||||
|
.card.svelte-xyz{
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card.svelte-xyz {
|
||||||
|
color: red;
|
||||||
|
}
|
@ -0,0 +1,12 @@
|
|||||||
|
<div class="card"></div>
|
||||||
|
|
||||||
|
<style>
|
||||||
|
@starting-style {
|
||||||
|
.card{
|
||||||
|
height: 0;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
.card {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
Reference in new issue