Skip to content

Commit ceac3f9

Browse files
committed
[css-color-5] hue interpolation with NaN w3c#5309
1 parent c431211 commit ceac3f9

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

css-color-5/Overview.bs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -829,6 +829,13 @@ One way to do this is <code><i>θ</i> = ((<i>θ</i> % 360) + 360) % 360</code>.
829829

830830
Unless otherwise specified, if no specific hue interpolation algorithm is selected by the host syntax, the default is ''shorter''.
831831

832+
If one of the angles has the value NaN,
833+
then for interpolation, NaN is replaced
834+
by the value of the other hue angle.
835+
If both angles have the value NaN,
836+
then for interpolation, NaN is replaced
837+
by the value 0 for both angles.
838+
832839
Issue(5277): How do these work when interpolating between multiple colors?
833840

834841
Security and Privacy Considerations {#SecPriv}

0 commit comments

Comments
 (0)