New issue
Advanced search Search tips
Note: Color blocks (like or ) mean that a user may not be available. Tooltip shows the reason.

Issue 765986 link

Starred by 2 users

Issue metadata

Status: Archived
Owner:
Last visit > 30 days ago
Closed: Sep 14
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Windows
Pri: 2
Type: Bug



Sign in to add a comment

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 description

UserAgent: 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.
 
Components: -Blink Blink>Animation

Comment 2 by ajha@chromium.org, Sep 18 2017

Cc: ajha@chromium.org
Labels: Needs-Feedback Needs-Milestone
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!
765986.mp4
1.3 MB View Download
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.
chrome_bug_blur_0.avi
1.9 MB Download
firefox_same_test_0.avi
2.6 MB Download
Project Member

Comment 4 by sheriffbot@chromium.org, Sep 18 2017

Labels: -Needs-Feedback
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
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.
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.
Cc: sc00335...@techmahindra.com
Labels: Triaged-ET M-63 OS-Linux
Status: Untriaged (was: Unconfirmed)
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
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.
Components: -Blink>Animation Blink>Paint
I don't think this is an animation issue as animation isn't responsible for actually rendering the content. Refiling on paint.
Labels: BugSource-User PaintTeamTriaged-20170920
Owner: trchen@chromium.org
Status: Assigned (was: Untriaged)
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.
Status: Archived (was: Assigned)
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