mirror of https://github.com/sveltejs/svelte
parent
39056ab18c
commit
286fb9873a
@ -0,0 +1,17 @@
|
||||
[
|
||||
{
|
||||
"code": "css-invalid-global-selector",
|
||||
"message": ":global(...) must contain a single selector",
|
||||
"start": {
|
||||
"line": 11,
|
||||
"column": 5,
|
||||
"character": 156
|
||||
},
|
||||
"end": {
|
||||
"line": 11,
|
||||
"column": 29,
|
||||
"character": 180
|
||||
},
|
||||
"pos": 156
|
||||
}
|
||||
]
|
||||
@ -0,0 +1,18 @@
|
||||
<style>
|
||||
div :global(:is(h1, h2)) {
|
||||
color: red;
|
||||
}
|
||||
div :global(:where(h1, h2)) {
|
||||
color: red;
|
||||
}
|
||||
div :global(h1 ~ :is(h2, h3)) {
|
||||
color: red;
|
||||
}
|
||||
div :global(:is(h1, h2), h3) {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
||||
|
||||
<div>
|
||||
<h1>hello world</h1>
|
||||
</div>
|
||||
Loading…
Reference in new issue