-
-
Notifications
You must be signed in to change notification settings - Fork 4.3k
New issue
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
Styles start with :global() and contain ~ are removed #5499
Comments
Interesting. @tanhauhau do you think it's practical to let the |
I debugged it more deeply and it came with version 3.27.0 and with https://github.com/sveltejs/svelte/pull/5427/files#diff-ad7d8aa7ba8f1612a46a38b563c075aaR211 |
1 similar comment
I debugged it more deeply and it came with version 3.27.0 and with https://github.com/sveltejs/svelte/pull/5427/files#diff-ad7d8aa7ba8f1612a46a38b563c075aaR211 |
It's a bug. Will look into it. Found that the scoping for |
@tanhauhau any progress? Had to rollback to 3.26 :( |
@Conduitry @Rich-Harris @antony |
@btamas Until fixed, you can workaround it like this: :global(* +) .class Thanks to https://github.com/lega911 |
This should be fixed in 3.32.2 - https://svelte.dev/repl/f912b3cecd29433990eca1947b902184?version=3.32.2 |
Describe the bug
When a style start with :global() and contain ~, it is detected as unused css and it won't be in the compiled component.
To Reproduce
https://svelte.dev/repl/f912b3cecd29433990eca1947b902184?version=3.29.0
Severity
Medium
The text was updated successfully, but these errors were encountered: