Skip to content

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

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

Metadata

Metadata

Assignees

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions