Description
Describe the bug
Hi,
This dummy code :
<div class="red" class:red={false}></div>
Should produce something like <div class=""></div>
(or <div></div>
), because the directive takes precedence over the class attribute.
But that not the case on SSR where the generated code is <div class="red"></div>
, which can cause a flash on hydration.
Reproduction
Demo on Sveltelabs (for SSR).
Hit the [RELOAD] button to refresh the page :
https://www.sveltelab.dev/je2q9zussa08osn
Logs
System Info
last version
Severity
annoyance
Metadata
Metadata
Assignees
Labels
No labels