Encountered the same issue with a bug related to a gradient background on Webkit displayed on a retina screen. The problem was replicated on both a MacBook Pro and an iPad.
After some testing, a workaround was discovered. It seems that the Webkit rendering engine creates a one-pixel line of non-transparent background along the edge of the gradient. By adjusting the background-position-y property, you can shift the background up by one pixel to mitigate the issue. (If the gradient is horizontal, switch to background-position-x.)
This adjustment may reveal the underlying content by one pixel on the opposite side of the gradient, so it's suggested to also modify the absolute position of the gradient overlay by one.
background-position-y: -1px;
bottom: -1px;
Depending on the setup, changing the bottom (or top) may not always yield the desired outcome based on how the gradient interacts with the content beneath it. Nevertheless, utilizing the background-position-y hack should eliminate the black line issue.
Sample Code
.img-gradient2 {
position: absolute;
width: 100%;
height: 100%;
/** Workaround fix for Webkit black-line on retina displays **/
background-position-y: -1px;
bottom: -1px;
/**/
background: -moz-linear-gradient(top, rgba(0,0,0,0) 26%, rgba(0,0,0,0.01) 27%, rgba(0,0,0,0.5) 68%, rgba(0,0,0,0.6) 100%); /* FF3.6+ */
background: -webkit-linear-gradient(top, rgba(0,0,0,0) 26%,rgba(0,0,0,0.01) 27%,rgba(0,0,0,0.5) 68%,rgba(0,0,0,0.6) 100%); /* Chrome,Safari4+ */
background: -o-linear-gradient(top, rgba(0,0,0,0) 26%,rgba(0,0,0,0.01) 27%,rgba(0,0,0,0.5) 68%,rgba(0,0,0,0.6) 100%); /* Opera 11.10+ */
background: -ms-linear-gradient(top, rgba(0,0,0,0) 26%,rgba(0,0,0,0.01) 27%,rgba(0,0,0,0.5) 68%,rgba(0,0,0,0.6) 100%); /* IE10+ */
background: linear-gradient(to bottom, rgba(0,0,0,0) 26%,rgba(0,0,0,0.01) 27%,rgba(0,0,0,0.5) 68%,rgba(0,0,0,0.6) 100%); /* W3C */
filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#00000000', endColorstr='#99000000',GradientType=0 ); /* IE6-9 */
}