When gamut mapping, the color space attribute GAMUT_CHECK should be used not only to check whether a color is in gamut, but it should be used as the color reference color space when gamut mapping.
When clipping, there are some cases where we can get away with clipping a color in the origin color space even when GAMUT_CHECK specifies a different color space. This saves us time and improves performance. It also allows us to keep compatibility with CSS. To enforce a clipping color space, a space can now set the color space attribute CLIP_SPACE to a specific space.
CLIP_SPACE
to a specific space.