Skip to content

Commit a0a9886

Browse files
committed
[css-color-4] Interpolation between legacy sRGB colors is (once again) in sRGB space, for compatibility. #7949
1 parent de89100 commit a0a9886

File tree

1 file changed

+19
-17
lines changed

1 file changed

+19
-17
lines changed

css-color-4/Overview.bs

Lines changed: 19 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -4770,7 +4770,6 @@ Color Space for Interpolation
47704770
gradient/gradient-eval-008.html
47714771
gradient/gradient-eval-009.html
47724772
gradient/gradient-none-interpolation.html
4773-
gradient/legacy-color-gradient.html
47744773
gradient/oklab-gradient.html
47754774
gradient/srgb-gradient.html
47764775
gradient/srgb-linear-gradient.html
@@ -4784,43 +4783,42 @@ Color Space for Interpolation
47844783
interpolation should take place in,
47854784
it defaults to Oklab.
47864785

4787-
4795-
4803+
for at least one of their colors,
4804+
or by explicitly specifying an [=interpolation color space=].
48084805

4809-
4806+
4807+
/css/css-images/gradient/css-color-4-colors-default-to-oklab-gradient.html
4808+
48114809

4812-
Authors that prefer interpolation in sRGB
4810+
48174815

48184816
If the colors to be interpolated are outside the gamut
48194817
of the [=interpolation color space=] ,
48204818
then once converted to that space,
48214819
they will contain out of range values.
48224820

4823-
These are not clipped, but the values are interpolated as-is.
4821+
These are not clipped; the values must be interpolated as-is.
48244822

48254823

48264824
Interpolating with Missing Components
@@ -4893,6 +4891,10 @@ Interpolating with Missing Components
48934891
The Whiteness and Blackness components of HWB
48944892
have no analogs in other color spaces.
48954893

4894+
4895+
gradient/gradient-none-interpolation.html
4896+
4897+
48964898
48974899
For example, if these two colors
48984900
are to be interpolated in OkLCh,

0 commit comments

Comments
 (0)