mirror of https://github.com/sveltejs/svelte
:global() with pseudo element should be considered as global (#6470)
parent
98ddf8b588
commit
fca6a6d38a
@ -0,0 +1,15 @@
|
||||
[{
|
||||
"code": "css-invalid-global",
|
||||
"message": ":global(...) can be at the start or end of a selector sequence, but not in the middle",
|
||||
"start": {
|
||||
"line": 5,
|
||||
"column": 6,
|
||||
"character": 60
|
||||
},
|
||||
"end": {
|
||||
"line": 5,
|
||||
"column": 19,
|
||||
"character": 73
|
||||
},
|
||||
"pos": 60
|
||||
}]
|
@ -0,0 +1,8 @@
|
||||
<style>
|
||||
.foo :global(.bar)::after {
|
||||
color: red;
|
||||
}
|
||||
.foo :global(.bar)::after .baz {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue