Skip to content

Commit

Permalink
[css-color-4] Remove hue interpolation 'specified', fix #7750
Browse files Browse the repository at this point in the history
  • Loading branch information
svgeesus committed Oct 26, 2022
1 parent f6c95c4 commit 10573c9
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions css-color-4/Overview.bs
Expand Up @@ -4367,7 +4367,7 @@ Color Space for Interpolation</h3>
<dfn export>&lt;color-space></dfn> = &lt;rectangular-color-space> | &lt;polar-color-space>
<dfn export>&lt;rectangular-color-space></dfn> = ''srgb'' | ''srgb-linear'' | ''lab'' | ''oklab'' | ''xyz'' | ''xyz-d50'' | ''xyz-d65''
<dfn export>&lt;polar-color-space></dfn> = ''hsl'' | ''hwb'' | ''lch'' | ''oklch''
<dfn export>&lt;hue-interpolation-method></dfn> = [ shorter | longer | increasing | decreasing | specified ] hue
<dfn export>&lt;hue-interpolation-method></dfn> = [ shorter | longer | increasing | decreasing ] hue
<dfn export id="color-interpolation-method">&lt;color-interpolation-method></dfn> = in [ <<rectangular-color-space>> | <<polar-color-space>> <<hue-interpolation-method>>? ]
</pre>

Expand Down Expand Up @@ -4725,8 +4725,7 @@ Hue Interpolation</h3>
Specifying a hue interpolation strategy is already part of the <<color-interpolation-method>> syntax
via the <<hue-interpolation-method>> token.

Unless the type of hue interpolation is ''specified'',
both angles and their difference need to be constrained to [0, 360] prior to interpolation.
Both angles and their difference need to be constrained to [0, 360] prior to interpolation.
To do this, the minimum number of turns that fit in the lesser angle
is added or subtracted from both angles,
bringing the lesser angle into the range [0,360);
Expand Down Expand Up @@ -4793,10 +4792,6 @@ Hue Interpolation</h3>
}
</pre>

<h4 id="hue-specified">
<dfn export>specified</dfn></h4>

No fixup is performed. Angles are interpolated in the same way as every other component.

<!--
██████ ██ ██ ███
Expand Down

0 comments on commit 10573c9

Please sign in to comment.