-
-
Notifications
You must be signed in to change notification settings - Fork 4k
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
Support :global() in compound selector #6222
Comments
4 tasks
This has been released in 3.38.0, and I've opened #6269 for documenting it. |
I think this change may have caused an issue with the repl: https://github.com/sveltejs/svelte-repl/issues/159 (it's the only change in 3.38.0 that seems connected) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If i have the following:
the selector
p.xxx
will get removed because it didnt match any elements, svelte has no idea that thep
will have the classxxx
.A workaround would be to use
:global(p.xxx)
, but this would mean it will affect all thep.xxx
out there.What I would like to do is
p:global(.xxx)
, while still scoped top
within the component, it will treat.xxx
as global (ie, do not go and match any selector written within:global()
)however, this is not yet possible, as it will throw error:
Is your feature request related to a problem? Please describe.
A clear and concise description of what the problem is. For example: I'm always frustrated when [...]
Describe the solution you'd like
A clear and concise description of what you want to happen.
Describe alternatives you've considered
A clear and concise description of any alternative solutions or features you've considered.
How important is this feature to you?
Note: the more honest and specific you are here the more we will take you seriously.
Additional context
Add any other context or screenshots about the feature request here.
The text was updated successfully, but these errors were encountered: