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

Issue 709330 link

Starred by 7 users

Issue metadata

Status: Duplicate
Merged: issue 696603
Owner:
Closed: Oct 2017
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: All
Pri: 2
Type: Bug

Blocked on:
issue skia:6470



Sign in to add a comment

CSS conic-gradient the edges are blurred

Reported by yio...@gmail.com, Apr 7 2017

Issue description

UserAgent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_11_6) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/57.0.2987.133 Safari/537.36

Steps to reproduce the problem:
1. Use background: repeating-conic-gradient(#000 0, #000 15deg, #fff 0, #fff 30deg); 

What is the expected behavior?
Like the SVG rendering.

What went wrong?
The edges are blurred.

Did this work before? N/A 

Chrome version: 59.0.3065.0  Channel: canary
OS Version: OS X 10.11.6
Flash Version: Shockwave Flash 25.0 r0
 
testcase1.png
45.7 KB View Download
testcase2.png
93.9 KB View Download
Cc: fmalita@chromium.org
Components: Blink>Paint

Comment 2 by ajha@chromium.org, Apr 7 2017

 Issue 709331  has been merged into this issue.

Comment 3 by ajha@chromium.org, Apr 7 2017

 Issue 709329  has been merged into this issue.

Comment 4 by ajha@chromium.org, Apr 7 2017

 Issue 709328  has been merged into this issue.
Labels: Needs-Triage-M59

Comment 6 by ajha@chromium.org, Apr 7 2017

Cc: ajha@chromium.org
Unable to reproduce the issue on the latest canary(59.0.3065.0) on MacBook Air OS 10.12.3. Attached is the screenshot.

Not sure, but if reproducible this looks to be specific to 10.11.6. 
709330.png
143 KB View Download
Cc: -fmalita@chromium.org bsalomon@chromium.org reed@google.com
Components: -Blink>Paint Internals>Skia
Labels: -Needs-Triage-M59
Owner: fmalita@chromium.org
Status: Assigned (was: Unconfirmed)
@ajha you need to run with --enable-experimental-web-platform-features, otherwise you're hitting Lea's polyfill on https://leaverou.github.io/conic-gradient/.

This is a Skia rendering artifact (for the GL backend specifically;  the software backend has its own issues).

@yiorsi@gmail.com just to confirm: your chrome://gpu/ shows "Rasterization: Hardware accelerated on all pages", right?

I'll open a Skia bug.
sweep_cpu.png
3.9 KB View Download
sweep_gpu.png
23.3 KB View Download
Same issue. 

> just to confirm: your chrome://gpu/ shows "Rasterization: Hardware accelerated on all pages", right?

yes
Labels: PaintTeamTriaged-20170406 BugSource-User
Blockedon: skia:6470

Comment 11 by yio...@gmail.com, Apr 7 2017

@fmalita

The default chrome://gpu/ shows "Rasterization: Hardware accelerated"

When I disabled chrome://flags/#enable-gpu-rasterization, display effects such as sweep_cpu.png
Labels: -OS-Mac OS-All
Thanks.

Skia issue: http://bugs.skia.org/6470

Comment 13 by yio...@gmail.com, Apr 7 2017

@fmalita Thanks, and also has transparent Alpha problem
alpha.png
144 KB View Download
@yiorsi@gmail.com

(I have not yet looked at the alpha difference very closely, it could be a valid issue)

Note that one of the stated limitations of Lea's polyfill is that interpolation is not performed in premultiplied space.  So the reference result you're using is likely not correct either.
Comparing to a linear gradient using the same colors: the new/native impl is correct and the difference you're seeing is due to the premul limitation in the conic polyfill.
alpha_gradient_polyfill.png
65.2 KB View Download
alpha_gradient_native.png
50.3 KB View Download

Comment 16 by yio...@gmail.com, Apr 7 2017

Thanks very much!
This is a better example for demonstrating this issue: http://dabblet.com/gist/51d6d879542fa5dc32376dd6b3f2585d


Screen Shot 2017-04-09 at 15.41.31.png
229 KB View Download
Mergedinto: 696603
Status: Duplicate (was: Assigned)
There have been several improvements in Skia's gradient impl, and I believe these cases are now rendering with sharp transitions on both sw/gpu.

But the general case (multiple, uneven stops) is still blurry with GPU rasterization.  Merging into the master bug.

Sign in to add a comment