<html>
<head>
<base href="https://bugs.webkit.org/">
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - [Cairo] Add support for premultiplied alpha interpolated color stop gradients in the Cairo backend"
href="https://bugs.webkit.org/show_bug.cgi?id=234606#c1">Comment # 1</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - [Cairo] Add support for premultiplied alpha interpolated color stop gradients in the Cairo backend"
href="https://bugs.webkit.org/show_bug.cgi?id=234606">bug 234606</a>
from <span class="vcard"><a class="email" href="mailto:aperez@igalia.com" title="Adrian Perez <aperez@igalia.com>"> <span class="fn">Adrian Perez</span></a>
</span></b>
<pre>AFAIU, with Cairo we set the colors for the stops un-premultiplied (because
there is no other option, that's what the public API allows), then Cairo
pre-multiplies color values while building its internal state, then internally
always does calculations using premultiplied values, meaning that when painting
a gradient it will interpolate stop colors which are premultiplied — there
is no way of telling Cairo to calculate interpolaton of gradient stops
un-premultiplied. Meaning: with Cairo the way it paints gradiants the output
is correct for CSS, but not SVG/Canvas.
(Take this with some big grains of salt, I am not a graphics expert, what
I *think* know is from looking sometimes inside Cairo in the last months.)</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>