Instead:
background: linear-gradient(to top, white, transparent);
Try adjusting the transparency to the rgba color value. For example:
background: linear-gradient(to top, white, rgba(255,255,255,0));
In other words, the rgb value of both colors must match. For example:
background: linear-gradient(to top, red, rgba(255,0,0,0));
As defined by the w3c specification, transparent black transparent (rgba (0,0,0,0)). This means that when you are in the middle of the transition, black should appear.
The color displayed in Safari is correct according to the specifications.
Amy
source share