Skip to content

[css-color-4] Consider removing lab(...) and lch(...) syntax and using color(lab ...) and color(lch ...) only #5887

Description

@weinig

I'd like to propose unifying on the color() function syntax for new color types to simplify and unify things.

Right now, you can specify Lab colors directly via lab(...) and color(lab ...) and indirectly via lch(...). Since we have a construction for colors with fallbacks in the color(...) function already, I think unifying new color descriptions like Lab and LCH to use it would be a nice simplification while we still can. I think this would ease both user understanding (we can say all these new color types use the same syntax) and somewhat ease implementation burden (though I don't really think that should play into it, and it is tiny).

Anyway, food for thought.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions