Skip to content

Incorrect conversion from color-mix to oklab #899

Closed
@ckoca

Description

@ckoca

Lightning CSS performs the following conversion:

Input:

body {
  background: color-mix(in oklab, #101010 85%, transparent);
}

Output:

body {
  background: oklab(17.3042% --7.45058e-9 1.49012e-8 / .85);
}

It appears that the second argument of the oklab function is incorrect, as it includes a double negative sign.

You can observe this behavior in the Lightning CSS playground.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions