WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
NEW
90339
Gradient do not dither
https://bugs.webkit.org/show_bug.cgi?id=90339
Summary
Gradient do not dither
Isaac Shapira
Reported
2012-06-30 13:03:11 PDT
Gradients do not dither from SVG or css3 gradients. This coupled with the lower color depth supported for gradients in webkit (Chrome more than Safari), (compared to IE an FF), leads to irreparable banding on subtle gradients. Please implement automatic or configurable dithering on gradient rendering. And thanks. You guys make the absolute best layout and rendering engine out there. I love you forever.
http://stackoverflow.com/questions/11269074/svg-banding-in-chrome
Attachments
Add attachment
proposed patch, testcase, etc.
Jake Archibald
Comment 1
2012-12-09 04:08:13 PST
I image there's a significant performance hit with dithering, if so it sounds like something that should be enabled when colour changes per pixel goes below a value likely to result in banding. Bugzilla ticket
https://bugzilla.mozilla.org/show_bug.cgi?id=627771
Banding article
http://tiamat.tsotech.com/24-bit-color-sucks
Brent Fulgham
Comment 2
2022-07-15 15:21:57 PDT
Looks like this is still an issue on all browsers.
Radar WebKit Bug Importer
Comment 3
2022-07-15 15:22:08 PDT
<
rdar://problem/97097227
>
Benoît Rouleau
Comment 4
2023-06-13 13:04:19 PDT
Interestingly, CSS gradients (e.g. `linear-gradient`, `radial-gradient`, etc.) look much better (no banding) when colors are specified in HEX format than in `rgb()` or even `color()` (I tried `display-p3` and there was still a lot of banding). See
https://twitter.com/henryheffernan/status/1632802901063262209
/
https://codepen.io/henryjeff/pen/oNPBaGN
Benoît Rouleau
Comment 5
2023-06-18 19:17:28 PDT
Sorry, my last comment is wrong. It is the transparency (`rgba()`) that is causing the banding, not the fact that it's not HEX (`rgb()` and `color()` are also fine). I got confused because in my project, something else was causing banding, but I can't reproduce it now.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug