Skip to content

"Unreachable executed" error when encountering min/max with unitless numbers #1044

@lfavole

Description

@lfavole

When I try to pass this code to Lightning CSS:

b {
    color: rgb(max(1, 255), 0, 0);
}

the output is:

/* ERROR: unreachable executed */

but I am expecting that output:

b{color:red}

It looks like the error is at that line of code.

I do not see the point of creating a percentage here, it is just a unit-less value that corresponds to a color channel.

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