4 ms·
This all gets interesting when mixing sRGB, Display-p3 or Lab colors in gradients and animations. There's an open issue about it at W3C: https://github.com/w3c/
by gardaani 7y ago
This all gets interesting when mixing sRGB, Display-p3 or Lab colors in gradients and animations. There's an open issue about it at W3C: https://github.com/w3c/csswg-drafts/issues/4647 https://github.com/w3c/csswg-drafts/issues/4647
I think Safari currently fails to display such gradients.
- NVI 7y agoI made an sRGB to Display-P3 gradient and it worked well for me in Safari: https://codepen.io/NV/pen/GRJvYzQ https://codepen.io/NV/pen/GRJvYzQ.
- gardaani 7y agoYou are right! I had tried it in SVG, where solid P3 works, but gradient P3 fails: https://jsfiddle.net/6pL12ct0/ https://jsfiddle.net/6pL12ct0/