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
And so the svelte code below is executed before the css is loaded and sets the unnecessary style position: relative and rewrite my style position: absolute:
Is it possible to fix it or should I not use asynchronous loading of css, or use position:absolute!important?
I guess that's up to you how you want to workaround it. Depending on what type of application your are working on synchronous CSS might be beneficial. You could also add an inline style for this edge case and have a comment point to this issue. Or use ResizeObserver manually. All of these options are legit.
Describe the bug
Hello. I am having a problem with this code:
I am loading the css of the component asynchronously:
And so the svelte code below is executed before the css is loaded and sets the unnecessary style
position: relative
and rewrite my styleposition: absolute
:svelte/src/runtime/internal/dom.ts
Line 589 in fc4797c
Is it possible to fix it or should I not use asynchronous loading of css, or use
position:absolute!important
?Reproduction
I'm not sure if this should be reproduced. It seems that everything is obvious from the description.
Logs
No response
System Info
Severity
annoyance
The text was updated successfully, but these errors were encountered: