@@ -4476,7 +4476,15 @@ Color Space for Interpolation</h3>
4476
4476
interpolation should take place in,
4477
4477
it defaults to Oklab.
4478
4478
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
4480
4488
between legacy sRGB color formats
4481
4489
(hex colors, named colors,
4482
4490
''rgb()'' , ''hsl()'' or ''hwb()''
@@ -4488,7 +4496,16 @@ Color Space for Interpolation</h3>
4488
4496
to opt-in to better interpolation,
4489
4497
even between sRGB colors,
4490
4498
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.
4492
4509
4493
4510
If the colors to be interpolated are outside the gamut
4494
4511
of the [=interpolation color space=] ,
0 commit comments