mix
returns NaN
values at extremes with fully transparent colors
#408
Labels
mix
returns NaN
values at extremes with fully transparent colors
#408
When using the
mix
function with a colour that is fully transparent, it returns a value of"rgba(NaN, NaN, NaN, 0)"
if theweight
is fully at the transparent end of the two colors. Some examples:As soon as the colour is not fully transparent, or the
weight
is not at the extreme end of its range, the values are valid.Curiously, the even edgier case of a transparent–transparent gradient works fine:
I’m guessing there’s a divide by zero error somewhere maybe.
The text was updated successfully, but these errors were encountered: