Bug 51844 - CSS3 gradients should interpolate premultiplied colors
Summary: CSS3 gradients should interpolate premultiplied colors
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: CSS (show other bugs)
Version: 528+ (Nightly build)
Hardware: PC OS X 10.5
: P2 Normal
Assignee: Nobody
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-01-03 12:03 PST by Simon Fraser (smfr)
Modified: 2020-07-07 16:23 PDT (History)
4 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Simon Fraser (smfr) 2011-01-03 12:03:35 PST
The spec <http://dev.w3.org/csswg/css3-images/#gradients> says that interpolation should be in premultiplied color space, which we don't implement (and is not possible to do in CG).
Comment 1 Adam Argyle 2020-07-07 16:23:18 PDT
I've noticed this greyish effect in Safari across a few project. It can be worked around if noticed and appropriately adjusted in the CSS, but until today had never understood why. Wanted to share the project I was using to test the effect (https://codepen.io/argyleink/pen/KKVoboe), and mention that example #23 in the spec talks about this effect as well.