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
If you do something like import '$lib/layout1.css'; in a +layout or +page, the CSS is incorrectly applied on hover (probably due to the preload functionality).
Additionally when navigating away from the route, the style tag is not properly unmounted, leaving the CSS in place.
For reference, I also included a css import using svelte-preprocess, which shows that scoped CSS does work as intended.
This is a question that has come up many times in the Svelte Discord, and is usually unexpected by the user.