Whole page gets blurry when applying some css animations on an element within a scaled page
Reported by
andrwkni...@gmail.com,
Sep 17 2017
|
|||||||
Issue descriptionUserAgent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.113 Safari/537.36 Steps to reproduce the problem: Check out this example: https://www.w3schools.com/code/tryit.asp?filename=FJMVO2VQCRV3 Here is what I did: 1. Scaled body with by 50% 2. Added a red square (normal div) element within this body container 3. Then defined a keyframe to move, rotate and change opacity of an element at the same time. 4. Set this keyframe as a css animation of the square. 5. When I start this animation in chrome, everything on the page gets blurry, most notably the text above the square, until animation ends, at which point it becomes clear again. When I start this example in firefox, everything works fine. While this effect is not very noticeable in my example, it can be much more noticeable sometimes, and severely affects UI in chrome in our project. What is the expected behavior? There should be no blur in this case. What went wrong? Everything gets blurry during css animations Did this work before? N/A Chrome version: 60.0.3112.113 Channel: stable OS Version: 10.0 Flash Version: Only some properties of keyframes do cause blur. If we remove opacity and rotation from the keyframe, no blur occurs. I believe other transforms / keyframe properties may cause this. If you look closely at the code text on the left side of the example page, you will see that it gets blurry too.
,
Sep 18 2017
Tried this on the reported version: 60.0.3112.113 and compared with FF but not seeing any major diff b/w rendering or blurriness. andrwknight@: Could you please attach any screenshot where this works, comparing with Chrome. Thanks in advance!
,
Sep 18 2017
This won't be noticeable on a screenshot. This is noticeable in action, when everything, particularly text, first gets blurry and then when animation ends, it gets sharp again. I don't believe you don't notice this... I added a lot more text now, and make the square run multiple times, check this new example now: https://www.w3schools.com/code/tryit.asp?filename=FJNZ45EBEPZ2 When animation ends, text gets shard again. This doesn't happen in firefox, and this doesn't happen if we remove opacity and rotation transform from keyframe. This seems minor, however when each animation causes all text go blurry and then make it sharp when it ends, and it repeats constantly, this is very noticeable and very bad for users. I'm attaching two videos, one from chrome, the other one from firefox.
,
Sep 18 2017
Thank you for providing more feedback. Adding requester "ajha@chromium.org" to the cc list and removing "Needs-Feedback" label. For more details visit https://www.chromium.org/issue-tracking/autotriage - Your friendly Sheriffbot
,
Sep 18 2017
Actually, on this video I noticed that in firefox it also gets blurry, but just a little, not very noticeable. In chrome it is much more noticeable.
,
Sep 18 2017
Also, just to be clear: the point is not there is a big div animated ON TOP of the text. Where this animation happens actually does not matter, it might be just a small animation in top right corner and text may be in top left corner in a totally different element, and still it gets blurred.
,
Sep 19 2017
Able to reproduce the issue on reported version60.0.3112.113,latest stable 61.0.3163.91 and on latest canary 63.0.3219.0 with the URL present in comment#3 on Ubuntu 14.04, Windows 10 and same thing is seen from 50.0.2624.0. Hence marking as Untriaged Observations: 1.On Ubuntu 14.04 blur is seen on Chrome very clearly when compared to Firefox 2.On Mac 10.12.1 issue is not seen. i.e Text doesn't go blur when animation started. 3.On Windows very little deviation is seen from firefox
,
Sep 19 2017
I think it might depend on video card or drivers or something else. The video I posted above is from Windows. I made it yesterday. Text is clearly blurred. However, when I try this same example today, it looks much cleaner. That's weird. The only difference is, I made a restart after about 10 days. But many our users complain about the blur during css animations, and they all use windows, I'm pretty sure.
,
Sep 20 2017
I don't think this is an animation issue as animation isn't responsible for actually rendering the content. Refiling on paint.
,
Sep 20 2017
Assigning this for investigation. The blurriness is because when animating we start compositing more stuff, and when scaling we may render at one resolution then filter to the final size. That will cause blurriness in general. This might be WontFix. The trade-off is performance vs. quality, and for animation we lean toward performance.
,
Sep 14
Couldn't repro as of today. I believe this has been fixed. The texts above the animated square will be squashed. I remember there was a CL that enabled translated rasterization for squashing layers. |
|||||||
►
Sign in to add a comment |
|||||||
Comment 1 by dtapu...@chromium.org
, Sep 18 2017