File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -5395,10 +5395,15 @@ CSS Gamut Mapping to an RGB Destination</h3>
5395
5395
For the analytical implementation,
5396
5396
having found the exact intersection,
5397
5397
project outwards (towards higher chroma) along the line of constant lightness
5398
- until the deltaEOK between the projected point
5399
- and a clipped version of that point
5400
- exceeds one JND.
5401
- Then returned the clipped version of the color as the mapped result.
5398
+ until either:
5399
+
5400
+ - the deltaEOK between the projected point
5401
+ and a clipped version of that point
5402
+ exceeds one JND, or
5403
+ - the chroma of the projected point is equal to
5404
+ the chroma of the original color (i.e. do not project past the original color)
5405
+
5406
+ Then return the clipped version of the color as the mapped result.
5402
5407
5403
5408
For the Oklch color space,
5404
5409
one JND is is an Oklch difference of 0.02.
You can’t perform that action at this time.
0 commit comments