mirror of https://github.com/sveltejs/svelte
standalone :global() with multiple selectors shouldn't be treated as error (#6508)
parent
64c162c6b7
commit
f60cb22a9d
@ -0,0 +1,17 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "css-invalid-global-selector",
|
||||||
|
"message": ":global(...) must contain a single selector",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 1,
|
||||||
|
"character": 54
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 20,
|
||||||
|
"character": 73
|
||||||
|
},
|
||||||
|
"pos": 54
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,12 @@
|
|||||||
|
<style>
|
||||||
|
:global(h1, h2, h3), div {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
:global(h1, h2, h3) div {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h1>hello world</h1>
|
||||||
|
</div>
|
@ -0,0 +1,17 @@
|
|||||||
|
[
|
||||||
|
{
|
||||||
|
"code": "css-invalid-global-selector",
|
||||||
|
"message": ":global(...) must contain a single selector",
|
||||||
|
"start": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 1,
|
||||||
|
"character": 54
|
||||||
|
},
|
||||||
|
"end": {
|
||||||
|
"line": 5,
|
||||||
|
"column": 20,
|
||||||
|
"character": 73
|
||||||
|
},
|
||||||
|
"pos": 54
|
||||||
|
}
|
||||||
|
]
|
@ -0,0 +1,12 @@
|
|||||||
|
<style>
|
||||||
|
:global(.h1\,h2\,h3).foo {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
:global(h1, h2, h3).foo {
|
||||||
|
color: red;
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
||||||
|
<div>
|
||||||
|
<h1>hello world</h1>
|
||||||
|
</div>
|
Loading…
Reference in new issue