Re: [csswg-drafts] [css-color-4] Color modifications proposal: extending color functions

I like the re-use of the existing color functions for modifying the channels in-place. I wouldn't make any of the arguments optional, tho; that seems both unnecessary and confusing - your `hsl(red 90%)` example shows that off. It's not just a parsing problem, it's an *understanding* problem - to understand that, you need to recognize that `90%` can't be the first value, so it must be the second value.

Instead, I think they should all be the same mandatory-ness as usual, and we use your `same` idea, or simplify it even more: `hsl(red _ 90% _)`, with the `_` ident indicating that you take that value from the provided color. (And when values *can* be omitted, like alpha, they default to `_`, I guess?).

-- 
GitHub Notification of comment by tabatkins
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/3187#issuecomment-426458180 using your GitHub account

Received on Tuesday, 2 October 2018 22:59:38 UTC