@@ -4770,7 +4770,6 @@ Color Space for Interpolation</h3>
4770
4770
gradient/gradient-eval-008.html
4771
4771
gradient/gradient-eval-009.html
4772
4772
gradient/gradient-none-interpolation.html
4773
- gradient/legacy-color-gradient.html
4774
4773
gradient/oklab-gradient.html
4775
4774
gradient/srgb-gradient.html
4776
4775
gradient/srgb-linear-gradient.html
@@ -4784,43 +4783,42 @@ Color Space for Interpolation</h3>
4784
4783
interpolation should take place in,
4785
4784
it defaults to Oklab.
4786
4785
4787
- <!--
4788
- The following removed by CSSWG resolution
4789
- https://github.com/w3c/csswg-drafts/issues/7948#issuecomment-1479941072
4790
-
4791
- RESOLVED: change specification say browser MUST use OKLab color interpolation
4792
- for all colors, including legacy colors
4793
-
4794
- -->
4795
- <!-- However, user agents <em> may</em> handle interpolation
4786
+ However, user agents <em> must</em> handle interpolation
4796
4787
between legacy sRGB color formats
4797
4788
(hex colors, named colors,
4798
4789
''rgb()'' , ''hsl()'' or ''hwb()''
4799
4790
and the equivalent alpha-including forms)
4800
4791
in gamma-encoded sRGB space.
4801
- This provides Web compatibility; legacy sRGB content interpolates in the sRGB space by default.
4792
+ This provides Web compatibility;
4793
+ legacy sRGB content interpolates in the sRGB space by default.
4794
+
4795
+ <wpt pathprefix="css/css-images/">
4796
+ gradient/legacy-color-gradient.html
4797
+ </wpt>
4802
4798
4803
4799
This also means that authors can choose
4804
4800
to opt-in to better interpolation,
4805
4801
even between sRGB colors,
4806
4802
by using the non-legacy ''color(srgb r g b)'' form
4807
- for at least one of their colors. -->
4803
+ for at least one of their colors,
4804
+ or by explicitly specifying an [=interpolation color space=] .
4808
4805
4809
- <!-- Now flip the previous paragraph,
4810
- authors that actually like sRGB interpolation can opt-in -->
4806
+ <wpt>
4807
+ /css/css-images/gradient/css-color-4-colors-default-to-oklab-gradient.html
4808
+ </wpt>
4811
4809
4812
- Authors that prefer interpolation in sRGB
4810
+ <!-- Authors that prefer interpolation in sRGB
4813
4811
in a particular instance
4814
4812
can opt-in to the old behavior
4815
4813
by explicitly specifying sRGB as the [=interpolation color space=] ,
4816
- for example on a particular gradient where that result is desired.
4814
+ for example on a particular gradient where that result is desired. -->
4817
4815
4818
4816
If the colors to be interpolated are outside the gamut
4819
4817
of the [=interpolation color space=] ,
4820
4818
then once converted to that space,
4821
4819
they will contain out of range values.
4822
4820
4823
- These are not clipped, but the values are interpolated as-is.
4821
+ These are not clipped; the values must be interpolated as-is.
4824
4822
4825
4823
<h3 id="interpolation-missing">
4826
4824
Interpolating with Missing Components</h3>
@@ -4893,6 +4891,10 @@ Interpolating with Missing Components</h3>
4893
4891
The Whiteness and Blackness components of HWB
4894
4892
have no analogs in other color spaces.
4895
4893
4894
+ <wpt pathprefix="css/css-images/">
4895
+ gradient/gradient-none-interpolation.html
4896
+ </wpt>
4897
+
4896
4898
<div class="example" id="ex-analogous-hue">
4897
4899
For example, if these two colors
4898
4900
are to be interpolated in OkLCh,
0 commit comments