Closed davidbonnet closed 6 years ago
@davidbonnet I noticed it looks a bit odd in Safari when zoomed out
Also in IE11 it seems 'static':
@arnaudvalle: Centering the circular element with a group fixes the Safari issue. Regarding the IE11 bug, did this happen before? It seems that some related issues are mentioned here: https://github.com/lumapps/lumX/issues/407#issuecomment-192194958
Yes, IE11 is already pretty broken in the current version (and has been for a while) so it's not as critical as fixing it in Safari.
This is how it looks like in IE11:
Actually, the determinate circular progress looks inderminate in Chrome and Safari.
Nicely done! 👍 And indeed, seems like the determinate version was broken, so thanks for fixing it as well!
General summary
Chrome (Version 67.0.3396.87 (Official Build) (64-bit)) has rendering artifacts when SVG elements are animated in an also animated HTML container when the viewport zoom is other than 100%. This makes the circular
lx-progress
component wobble.The fix consists of moving the animation behavior from the
svg
element (which is an HTML node) to ag
(which is an SVG node). With all the animation happening in thesvg
land, the Chrome rendering pipeline works better.Expected behavior
Current behavior
Steps to reproduce
lx-progress
demo.toggle circular progress
button.lx-progress
wobbles.