Skip to content

Commit 30d6185

Browse files
committed
[css-color-4] Add out of range clamping to the prose, as well as the pseudocode
1 parent ac1b5e5 commit 30d6185

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

css-color-4/Overview.bs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5291,6 +5291,12 @@ Gamut Mapping
52915291
and the color difference formula used is <a href="#color-difference-OK">deltaEOK</a>.
52925292
The local-MINDE improvement is used.
52935293

5294+
For colors which are out of range on the Lightness axis,
5295+
white is returned in the destination color space
5296+
if the Lightness is greater than or equal to 1.0,
5297+
while black is returned in the destination color space
5298+
if the Lightness is less than or equal to 0.0.
5299+
52945300
For the binary search implementation,
52955301
at each step in the search,
52965302
the deltaEOK is computed between the current mapped color

0 commit comments

Comments
 (0)