Bug 51844
Summary: | CSS3 gradients should interpolate premultiplied colors | ||
---|---|---|---|
Product: | WebKit | Reporter: | Simon Fraser (smfr) <simon.fraser> |
Component: | CSS | Assignee: | Nobody <webkit-unassigned> |
Status: | NEW | ||
Severity: | Normal | CC: | argyle, gilmoreorless, igor.oliveira, webmaster |
Priority: | P2 | ||
Version: | 528+ (Nightly build) | ||
Hardware: | PC | ||
OS: | OS X 10.5 |
Simon Fraser (smfr)
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).
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Adam Argyle
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.