Skip to content

Commit cc85d46

Browse files
committed
[css-color-4] RESOLVED: change specification say browser MUST use OKLab color interpolation for all colors, including legacy colors w3c#7948
1 parent 2ea9899 commit cc85d46

File tree

1 file changed

+19
-2
lines changed

1 file changed

+19
-2
lines changed

css-color-4/Overview.bs

+19-2
Original file line numberDiff line numberDiff line change
@@ -4476,7 +4476,15 @@ Color Space for Interpolation</h3>
44764476
interpolation should take place in,
44774477
it defaults to Oklab.
44784478

4479-
However, user agents <em>may</em> handle interpolation
4479+
<!--
4480+
The following removed by CSSWG resolution
4481+
https://github.com/w3c/csswg-drafts/issues/7948#issuecomment-1479941072
4482+
4483+
RESOLVED: change specification say browser MUST use OKLab color interpolation
4484+
for all colors, including legacy colors
4485+
4486+
-->
4487+
<!-- However, user agents <em>may</em> handle interpolation
44804488
between legacy sRGB color formats
44814489
(hex colors, named colors,
44824490
''rgb()'', ''hsl()'' or ''hwb()''
@@ -4488,7 +4496,16 @@ Color Space for Interpolation</h3>
44884496
to opt-in to better interpolation,
44894497
even between sRGB colors,
44904498
by using the non-legacy ''color(srgb r g b)'' form
4491-
for at least one of their colors.
4499+
for at least one of their colors. -->
4500+
4501+
<!-- Now flip the previous paragraph,
4502+
authors that actually like sRGB interpolation can opt-in -->
4503+
4504+
Authors that prefer interpolation in sRGB
4505+
in a particular instance
4506+
can opt-in to the the old behavior
4507+
by explicitly specifying sRGB as the [=interpolation color space=],
4508+
for example on a particular gradient where that result is desired.
44924509

44934510
If the colors to be interpolated are outside the gamut
44944511
of the [=interpolation color space=] ,

0 commit comments

Comments
 (0)