Skip to content

[css-color-5] Mixing alpha #5176

@kbabbitt

Description

@kbabbitt

In #4915 the working group resolved that in forced colors mode, the color-mix function would be used for background-color, in order to apply the computed color's alpha to the appropriate system color.

At the moment color-mix does not specify a way to mix the alpha channel. Noting that a is currently used for the like-named channel in lab colorspace, and alpha is (at least theoretically) independent of colorspace, my suggestion is to add alpha to the production for color-adjuster:

<dfn>color-adjuster</dfn> = <<rgb-adjuster>> | <<hsl-adjuster>> | <<hwb-adjuster>>
    | <<xyz-adjuster>> | <<lab-adjuster>> | <<lch-adjuster>> | alpha

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions