You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have tried looking into the reason for this behaviour. My intuition is that it comes from the style_manager.ts, because it uses the "append_empty_stylesheet" function when it creates a rule. Creating a rule is done every time a transition is performed.
The style_manager has a "clear_rules" method which is used for cleanup. This function deletes all rules in the stylesheets the style_manager has created. Is there a reason why it does this instead of removing the stylesheets from the DOM?
Edit: It seems like the behaviour is like that is because the style_manager should only create one stylesheet for every document, and edits this single stylesheet.
Describe the bug
See the title.
I've tested with the animate-directive as well, but I am only able to achieve this behaviour with transitions.
Reproduction
Repo:
https://github.com/MathiasWP/svelte-transition-stylesheet-bug
REPL (inspect the sandbox and look at the head in its document):
https://svelte.dev/repl/8fb5cf66517145568d2391b6a4c4d92c?version=3.46.4
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: