mirror of https://github.com/sveltejs/svelte
feat: support parsing camel case in container queries (#11131)
parent
11b8e94f9c
commit
41eb8daab2
@ -0,0 +1,5 @@
|
||||
---
|
||||
'svelte': patch
|
||||
---
|
||||
|
||||
fix parsing camelcase container query name
|
@ -0,0 +1 @@
|
||||
.main.svelte-xyz{container-name:myContainer;container-type:inline-size}@container myContainer (min-width: 300px){h1.svelte-xyz{color:red}}
|
@ -0,0 +1,13 @@
|
||||
<h1 class="main">hello</h1>
|
||||
|
||||
<style lang="css">
|
||||
.main {
|
||||
container-name: myContainer;
|
||||
container-type: inline-size;
|
||||
}
|
||||
@container myContainer (min-width: 300px) {
|
||||
h1 {
|
||||
color: red;
|
||||
}
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue