New issue
Advanced search Search tips

Issue 904751 link

Starred by 2 users

Issue metadata

Status: Duplicate
Merged: issue 867813
Owner: ----
Closed: Nov 13
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux
Pri: 2
Type: Bug



Sign in to add a comment

PNG Transparency not rendered properly when hardware acceleration is turned on

Reported by noa...@gmail.com, Nov 13

Issue description

UserAgent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/69.0.3497.100 Safari/537.36

Example URL:
https://jsfiddle.net/thecoon/87pLdm5u/

Steps to reproduce the problem:
1. Run Chrome/Chromium version >67.0.3396.99 on Arch Linux (GNOME)
2. Turn off hardware acceleration
3. View PNG images with transparent or semi-transparent pixels on a light background
4. Transparent pixels show up as shades of black/green solid colors

What is the expected behavior?
Pixels should be completely transparent or semi-transparent colors which blend with the background color

What went wrong?
The URL attached is a JSFiddle I made which shows this images (https://www.google.com/images/nav_logo242.png) on a white background (because Chromium defaults to a dark background when displaying images alone). 
One screenshot was taken with hardware acceleration turned on, the other with hardware acceleration turned off. 

Does it occur on multiple sites: Yes

Is it a problem with a plugin? No 

Did this work before? Yes 67.0.3396.99

Does this work in other browsers? Yes

Chrome version: 70.0.3538.102  Channel: stable
OS Version: Arch Linux
Flash Version: 

lspci output:
VGA compatible controller: Intel Corporation Haswell-ULT Integrated Graphics Controller (rev 0b)
 
hw_acc_off.png
160 KB View Download
hw_acc_on.png
160 KB View Download
Labels: Needs-Triage-M70 Needs-Bisect
Looks like  bug 867813  fixed in Chrome 71.

Cc: bokan@chromium.org
Mergedinto: 867813
Status: Duplicate (was: Unconfirmed)
Thanks looks like it. noam09@: please try Chrome Beta and confirm it's fixed. If you're still seeing the issue feel free to reply and we can reopen this bug separately.
Thank you for pointing out 867813. 
Just tried out Chrome Beta (71.0.3578.44) and can confirm that the issue is resolved. PNG transparency now renders fine. 

Although there is a very slight difference between colors rendered when hardware acceleration is toggled, but I assume that is expected behavior. Actually, now that I've looked into it further, the colors render differently for all elements in the page, not just PNG, so it's probably just the difference in hardware vs non-hardware rendering in general.  

Thank you to everyone involved for the fix!

Sign in to add a comment