Reputation: 1144
The gradient property does not work ok on my android's dolphin browser, version 9.0.1. Here is the css:
position: absolute;
top: 0;
left: 0;
width: 320px;
height: 60px;
/* Mozilla Firefox */
background-image: -moz-linear-gradient(left, rgba(255,255,255,0) 66px, #171000 172px);
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, right top, color-stop(0, rgba(17, 10, 0, 0)), color-stop(1, #171000));
/* Webkit (Chrome 11+) */
background-image: -webkit-linear-gradient(left, rgba(17, 10, 0, 0) 66px, #171000 172px);
/* W3C Markup, IE10 Release Preview */
background-image: linear-gradient(to right, rgba(17, 10, 0, 0) 66px, #171000 172px);
Do I have to add another rule for this browser? As far as i know it uses webkit, i don't understand why it doesn't work.
Upvotes: 4
Views: 598
Reputation: 3193
EITHER
change color-stop(0, rgba(17, 10, 0, 0)), color-stop(1, #171000)
to
background-image:-webkit-gradient(linear, 0% 0%, 0% 100%, color-stop(0%, #a7cfdf), color-stop(100%, #23538a));
OR (if the above solution doesn't help then you may try it)
background: -webkit-gradient(linear, 0% 0%, 0% 100%, from(#FFFFFF), to(#8C8C8C));
background: -webkit-linear-gradient(bottom, #8C8C8C,#FFFFFF );
Upvotes: 2
Reputation: 1047
Might be caused by the mixing of color formats (rgba and hex).
Try using:
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(17, 10, 0, 0)), color-stop(100%, rgba(23, 16, 0, 1)));
or
/* Webkit (Safari/Chrome 10) */
background-image: -webkit-gradient(linear, left top, right top, color-stop(0%, rgba(17, 10, 0, 0)), color-stop(100%, rgba(17, 10, 0, 1)));
Take in account that rgb(17, 10, 0) is different from #171000
Upvotes: 1