CSSWG is currently discussing fixing the issues with clipping of out-of-gamut colors:
Naive clipping leads to nonuniform lightness, so the plan is to implement more sophisticated clipping. The final algorithm isn't set in stone yet (Chrome devs aren't responding), but I think it's important to follow the issue and maybe implement the current proposal.