mirror of https://github.com/sveltejs/svelte
disallow multiple selectors inside :global() (#6428)
parent
cba92ad2a9
commit
bbcc1e7479
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"code": "css-invalid-global-selector",
|
||||
"message": ":global(...) must contain a single selector",
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 5,
|
||||
"character": 58
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 24,
|
||||
"character": 77
|
||||
},
|
||||
"pos": 58
|
||||
}
|
||||
]
|
@ -0,0 +1,12 @@
|
||||
<style>
|
||||
div :global(.h1\,h2\,h3) {
|
||||
color: red;
|
||||
}
|
||||
div :global(h1, h2, h3) {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<h1>hello world</h1>
|
||||
</div>
|
Loading…
Reference in new issue