Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

CSS refresh issue #21

Open
musaticsgilbert opened this issue Apr 15, 2021 · 2 comments
Open

CSS refresh issue #21

musaticsgilbert opened this issue Apr 15, 2021 · 2 comments

Comments

@musaticsgilbert
Copy link

The v2.0.5 refactoring, while making the code somewhat cleaner, also introduced an issue with the rendering.
See the diff here: 1e302a8#diff-82e2514055cb74ebb7ad8048a1e13c101ca9276fe11790f259e165ac6eadd528

While the CSS renderer could check if the separate style changes really caused changes and only update those styles, setting the cssText directly always rewrites the styles. Since the render updates are going constantly due to the infinite loop, this makes development really hard because in the development console, while you'd try to change a style property it already renders the next frame.

Maybe it even causes performance issues but I didn't test it.

I downloaded the code and restored the state to before the update in my project and it works fine now.

@webdeveloper0429
Copy link

Same issue here.
CSS is refreshing continuously so I can't inspect element styles.
You can confirm whether it is refreshing in the CSS computed tab. In the computed tab, you can see nothing.

@nicksen782
Copy link

I have also encountered this issue. If nothing changes then a redraw should not need to be done. Is there a fix available?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants