Skip to content

[css-color-5] Only hsl and hwb have channel values as percentages in RCS #9016

@romainmenke

Description

@romainmenke

I was going over the list of changes in css-color-5 and I noticed that only hsl and hwb have channel keywords in RCS that have percentage values.

Both however also allow number values as regular arguments.
In css-color-5 these are both valid and equal :

  • hwb(90deg 25% 25%)
  • hwb(90deg 25 25)

@svgeesus is there a reason not to give the channel keywords the number type?
That would make these two color functions more consistent with every other color function.

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