You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
svelte/test/runtime/samples/inline-style-directive-stri.../main.svelte

12 lines
224 B

<script>
let url =
"https://raw.githubusercontent.com/sveltejs/branding/master/svelte-vertical.png";
let alpha = 1;
</script>
<div
style:background-image="url({url})"
style:--css-variable="rgba(0, 0, 0, {alpha})"
/>