Skip to content

Wrong output for contrast #526

@roelvanduijnhoven

Description

@roelvanduijnhoven

The code below will evaluate to white using the LESS PHP library and black using the reference JS library. Inconsistent behaviour.

body {
  color: contrast(#767F32, #000000, #ffffff);
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions