Open ogbaoghene opened 10 years ago
Have you got a codepen or something to give more detail?
Yea, sure. Forked the original, I understand the fallback is only an approximation and it work okay with some colors. But the fallback for light grays is too light and it just gets wonky with some colors.
Perhaps I'll rip it out and replace it with this - http://codepen.io/BPScott/pen/wpBiI, thoughts?
Seems like a great option to explore, it's much more flexible too, taking into consideration other background colors apart from black and white. This also uses that approach - http://codepen.io/FernE97/pen/qcHlr, but it uses mix instead of RGB Functions.
Came up with this: RGBa Fallback http://codepen.io/Tenesan/pen/gcwqh
The color generated by the function for RGBa fallbacks is actually of a very different shade/ tint of the transparent original.