Closed Bug 1625917 Opened 4 years ago Closed 2 months ago

CSS conic-gradient the edges are blurred


(Core :: Graphics, defect, P3)

76 Branch





(Reporter: jieorlin, Unassigned)




(Keywords: parity-safari)

User Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_14_5) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/80.0.3987.132 Safari/537.36

Steps to reproduce:

data:text/html;charset=UTF-8,<style>html{background: repeating-conic-gradient(at left, black 0 2%, white 0 4%); min-height: 100%}</style>

Chrome bug:

Expected results:

No sawteeth, as smooth as SVG rendering.

Bugbug thinks this bug should belong to this component, but please revert this change in case of error.

Component: Untriaged → CSS Parsing and Computation
Product: Firefox → Core
Component: CSS Parsing and Computation → Graphics
Ever confirmed: true

Thanks for reporting! Since the bug report seems to be filed from macOS and Chromium is affected as well, I assume this was reported for Skia.

The current implementation uses SkGradientShader::MakeSweep method of the Skia library:

similar to what Chromium does:

This needs to be fixed upstream.

I haven't checked if this affects WebRender though.

It seems like the Chromium bug has been closed even though I see the same blurry rendering on Chromium.

Keywords: parity-safari

Chrome has not been fixed yet. see also:

(In reply to jieorlin from comment #4)

Chrome has not been fixed yet. see also:

Thanks for finding the bug report!

Looks like this will be solved once Skia fixes it and we update the skia dependency.

Priority: -- → P3

Because this bug's Severity has not been changed from the default since it was filed, and it's Priority is P3 (Backlog,) indicating it has been triaged, the bug's Severity is being updated to S3 (normal.)

Severity: normal → S3

Nowadays, we have the opposite issue: webrender does not anti-alias hard gradient stops so they are pixelated. We don't use skia to render css gradients anymore except in a few rare exceptions so I'll close this.

Closed: 2 months ago
Resolution: --- → INVALID
You need to log in before you can comment on or make changes to this bug.