<html>
<head>
<base href="https://bugs.webkit.org/" />
</head>
<body><table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Bug ID</th>
<td><a class="bz_bug_link
bz_status_NEW "
title="NEW - Linear-gradient from solid color to transparent rendering with black"
href="https://bugs.webkit.org/show_bug.cgi?id=156105">156105</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>Linear-gradient from solid color to transparent rendering with black
</td>
</tr>
<tr>
<th>Classification</th>
<td>Unclassified
</td>
</tr>
<tr>
<th>Product</th>
<td>WebKit
</td>
</tr>
<tr>
<th>Version</th>
<td>Safari 9
</td>
</tr>
<tr>
<th>Hardware</th>
<td>Macintosh
</td>
</tr>
<tr>
<th>OS</th>
<td>OS X 10.11
</td>
</tr>
<tr>
<th>Status</th>
<td>NEW
</td>
</tr>
<tr>
<th>Severity</th>
<td>Major
</td>
</tr>
<tr>
<th>Priority</th>
<td>P2
</td>
</tr>
<tr>
<th>Component</th>
<td>Layout and Rendering
</td>
</tr>
<tr>
<th>Assignee</th>
<td>webkit-unassigned@lists.webkit.org
</td>
</tr>
<tr>
<th>Reporter</th>
<td>zyuzin.vitaly@gmail.com
</td>
</tr>
<tr>
<th>CC</th>
<td>simon.fraser@apple.com
</td>
</tr></table>
<p>
<div>
<pre>Created <span class=""><a href="attachment.cgi?id=275393" name="attach_275393" title="linear-gradient from white to transparent goes through black">attachment 275393</a> <a href="attachment.cgi?id=275393&action=edit" title="linear-gradient from white to transparent goes through black">[details]</a></span>
linear-gradient from white to transparent goes through black
<a href="http://codepen.io/juwain/pen/bpeNpy">http://codepen.io/juwain/pen/bpeNpy</a>
1. Create a block.
2. Set background-image: linear-gradient(to right, white, transparent) to it.
Actual behavior:
White color becomes gray and the transparent.
Expected behavior:
White color smoothly turns into transparent.
Check specification <a href="https://www.w3.org/TR/2012/CR-css3-images-20120417/#color-stop-syntax">https://www.w3.org/TR/2012/CR-css3-images-20120417/#color-stop-syntax</a>
Example 23.
In premultiplied space, transitions to or from "transparent" always look nice.
On the other hand, if a gradient were to incorrectly transition in non-premultiplied space, the colors near "transparent" would noticeably darken to a grayish color, because "transparent" is actually a shorthand for ‘rgba(0,0,0,0)’, or transparent black.</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>