Skip to content

[css-color-4] Use the phrase "prepare both colors for conversion" seems wrong in color interpolation algorithm #14049

Closed

Description

@weinig

In step 2 of the color interpolation algorithm, it states:

  1. prepare both colors for conversion. this changes any powerless components to missing values.

While it doesn't link to the definition, "prepare a color col1 for conversion", the wording, and lack of other definition seem to imply that is what it is referring to.

But, the "prepare a color col1 for conversion" seems wrong here. The second step of "prepare a color col1 for conversion" states:

  1. If src is in a cylindrical polar color representation, convert col1 to the corresponding rectangular orthogonal color representation and let this be the new col1.

and we certainly don't want to do that before interpolation. Maintaining cylindrical polar color representation is one of the features of interpolation via the hue interpolation modes.

It seems the intent was probably just to apply the "Change any powerless components in src to missing components", but its getting more than it bargained for.

If that is the intent, probably the easiest edit is just to state that explicitly, especially since that would remove the need for the clarifying second part.

cc @svgeesus

Activity

  1. self-assigned this
    on Jul 16, 2026
  2. svgeesus commented on Jul 17, 2026

    @svgeesus
    Collaborator

    If that is the intent, probably the easiest edit is just to state that explicitly, especially since that would remove the need for the clarifying second part.

    Yes, I have now done that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions