mirror of https://github.com/sveltejs/svelte
When a reactive style directive value contains a trailing semicolon (e.g.
`style:background={`conic-gradient(...);'`}`), the initial render works
because it goes through cssText which tolerates semicolons, but subsequent
reactive updates call el.style.setProperty() which silently rejects values
containing semicolons, leaving the style unchanged.
Strip trailing semicolons from the value in update_styles before calling
setProperty, making reactive updates consistent with the initial render.
Fixes #18182
pull/18200/head
parent
af5b9724ab
commit
81458c0696
Loading…
Reference in new issue