Skip to content
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

Kebab case style directives with a template fails #7122

Closed
ghostdevv opened this issue Jan 12, 2022 · 3 comments · Fixed by #7123
Closed

Kebab case style directives with a template fails #7122

ghostdevv opened this issue Jan 12, 2022 · 3 comments · Fixed by #7123

Comments

@ghostdevv
Copy link
Member

ghostdevv commented Jan 12, 2022

Describe the bug

Currently a kebab case style directive such as background-image with a template will cause a error as it uses - in it's variable

Reproduction

Ues the following svelte code:

<script>
	let url = "https://raw.githubusercontent.com/sveltejs/branding/master/svelte-vertical.png";
</script>

<div style:background-image="url({url})" />

Logs

No response

System Info

n/a

Severity

blocking all usage of svelte

@ghostdevv
Copy link
Member Author

Credit goes to @PuruVJ for finding this issue of course

@Conduitry
Copy link
Member

This should be fixed in 3.46.1.

@ghostdevv
Copy link
Member Author

Amazing

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants