neve
neve copied to clipboard
Header logo looks a bit blurry in Chrome
Description:
The logo from demos, part of the Header, are blurry in Chrome - compared to other browsers (Firefox, Safari). The issue is not the image quality as the logos go above 300px.
From a quick search, it looks to be an issue with how Chrome renders images on Mac: https://stackoverflow.com/questions/37906602/blurry-downscaled-images-in-chrome
and image-rendering: -webkit-optimize-contrast;
fixes the problem (not sure if it's the best solution)
How to reproduce:
- Open any demo in Chrome (on Mac) and other browser (Safari of Firefox)
- Notice the difference between how the logos look depending on the browser
Expected behaviour:
Logo in Chrome shouldn't be blurred
Current behaviour:
Logo in Chrome is blurred
Reference (the back layers is Chrome):
Technical info
- WordPress version: 5.5.1
- Theme version: v2.8.3
@mghenciu is this still happening for you? I checked and from what I've seen, there are no issues. Might be due to an upgrade for Chrome.
@mghenciu is this still happening for you? I checked and from what I've seen, there are no issues. Might be due to an upgrade for Chrome.
I'll take another look tomorrow on the Laptop, Cristi.
Now, on my PC + External Monitor - I don't see the difference:
I checked now on the same device, and here are the results:
- on the 4k External Monitor, the blur/any differences are not visible
- while on the MacBook Pro built-in display, there is a difference between how it looks in Chrome vs Safari & Firefox
Here's how it looks on the Retina screen (blur in the first logo):
And same tabs but with image-rendering: -webkit-optimize-contrast;
applied to the Logo in Chrome (first one):
There is a small difference, but I would say that is very specific, and visible just on some screens. And, as mentioned before, it's a known issue in the web community, related to Chromium browsers. But I guess it's up to us, if we want mitigate this somehow, or not.
@abaicus do you have any thoughts on this? Should we add image-rendering: -webkit-optimize-contrast;
?
@cristian-ungureanu @mghenciu Can we check how other themes handle this issue?
PS: I think it would be a good idea to add it regardless.
Thank you! I will check how others handle this and get back here.
I will put this task on hold. I had a look at the most used themes and no one is using image-rendering: -webkit-optimize-contrast;
. We can get back to this after a while and see what we can do.
Chome team has marked the bug as wontfix so it seems at least for now the issue would continue on chrome https://bugs.chromium.org/p/chromium/issues/detail?id=562162