mirror of https://github.com/sveltejs/svelte
fix: add global compound selector validation (#6322)
fixes #6272 prevents invalid CSS output --------- Co-authored-by: Roy Choo <roy.choo@bytedance.com> Co-authored-by: tanhauhau <lhtan93@gmail.com> Co-authored-by: Simon H <5968653+dummdidumm@users.noreply.github.com>pull/8342/head
parent
ed575cc927
commit
acbf8135a8
@ -0,0 +1,12 @@
|
||||
[{
|
||||
"code": "css-invalid-global-selector-position",
|
||||
"message": ":global(...) not at the start of a selector sequence should not contain type or universal selectors",
|
||||
"start": {
|
||||
"line": 2,
|
||||
"column": 5
|
||||
},
|
||||
"end": {
|
||||
"line": 2,
|
||||
"column": 17
|
||||
}
|
||||
}]
|
@ -0,0 +1,5 @@
|
||||
<style>
|
||||
.foo:global(div) {
|
||||
color: red;
|
||||
}
|
||||
</style>
|
Loading…
Reference in new issue