Closed yukulele closed 6 years ago
In case of a transparent value in a gradient, Google Chrome and Opera still inherit colours from somewhere(probably neighbors), while Firefox sets it to a default value(black).
The following code inside SassColour.php is the one that does the conversion:
if ($rgba[3] == 0) { return 'transparent'; } elseif ($rgba[3] < 1) {
rgba()
/hsla()
colors with 0 as alpha component are always converted totransparent
in case of gradient or transition, each component are translated (r, g, b and a)for exemple,
rgba(red,0)
must be converted torgba(255,0,0,0)
but phpsass convert it totransparent
transparent
is equivalent ofrgba(0,0,0,0)
you can see some exemple here: http://dabblet.com/gist/5088958
Phpsass should not convert all transparent colors to
transparent