Skip to content

hsl() not getting colorized #3625

Closed
Closed
@PRR24

Description

@PRR24

According to documentation https://lesscss.org/functions/#color-definition-hsl
hsl() function should output a color, but it does not. rgb() and hsv() behave as documented.

$ npx lessc --version
lessc 4.1.1 (Less Compiler) [JavaScript]
$ cat problem.less 
.problem {
  color: rgb(128, 255, 0);
  background-color: hsl(90, 100%, 50%);
  border-color: hsv(90, 100%, 50%);
}
$ npx lessc problem.less 
.problem {
  color: #80ff00;
  background-color: hsl(90, 100%, 50%);
  border-color: #408000;
}

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