We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
:global
SelectorList
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Given a component like this
<style> :global { a, b { color: red; } } </style>
the generated css looks like this
/* :global {*/ /* (unused) a, b*/ { color: red; } /*}*/
which is wrong because there's a block without a selector.
REPL
-
annoyance
The text was updated successfully, but these errors were encountered:
This is probably a regression from #15762 since now here
svelte/packages/svelte/src/compiler/phases/3-transform/css/index.js
Lines 201 to 202 in bfb969a
even if we are in a global block we still modify the code because node.children.length is greater than 1
node.children.length
Sorry, something went wrong.
fix: don't mark selector lists inside :global with multiple items a…
26d9a9a
…s unused Regression from #15762 Fixes #15816
5692de7
dfd742d
dummdidumm
Successfully merging a pull request may close this issue.
Describe the bug
Given a component like this
the generated css looks like this
which is wrong because there's a block without a selector.
Reproduction
REPL
Logs
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: