Skip to content

Commit 9ecd3bf

Browse files
committed
[css-color-4] Analytical gm must not project past the original color, #7653
1 parent 681621f commit 9ecd3bf

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

css-color-4/Overview.bs

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5395,10 +5395,15 @@ CSS Gamut Mapping to an RGB Destination</h3>
53955395
For the analytical implementation,
53965396
having found the exact intersection,
53975397
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.
54025407

54035408
For the Oklch color space,
54045409
one JND is is an Oklch difference of 0.02.

0 commit comments

Comments
 (0)