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.
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(...)andcolor(lab ...)and indirectly vialch(...). Since we have a construction for colors with fallbacks in thecolor(...)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.