-
-
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
Tag interpolation in non-root <style> tag stopped working #1147
Comments
Interesting. This would have stopped working in #1082 / #1086. I changed how non-top-level |
I think that supporting Personally, I don't find this feature confusing. Quite the contrary; I expected it to work on top-level For my work I use a combination of css interpolation and css variables. The components use top-level style tags with customizable values defined as css vars, and a single non-top-level style tag in the main component is used to do the css interpolation: This example is a bit too simplified, because I could simply pass the color as an attribute, but it gets too noisy when 5+ style attributes are involved. |
@Conduitry Thank you for working on this! I'll close this issue, seeing that it's been included in the latest release. |
Hi there!
I'm building skinnable frontend components using Svelte and I was relying on a behavior that stopped working in a recent release: interpolating css values in a non-root <style> tag.
Here is a working example using v1.51.0
https://svelte.technology/repl?version=1.51.0&gist=fb8f986fe7e00f96a21ac739dd86e109
This stopped working on v1.51.1
https://svelte.technology/repl?version=1.51.1&gist=fb8f986fe7e00f96a21ac739dd86e109
I'm not sure if this behavior was a feature or a bug, but I found it very useful for generating dynamic css that defined hover states and animations.
Would you consider making it work again?
The text was updated successfully, but these errors were encountered: