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

While keywords usually increase readability, in this case since there are no commas to group the different arguments, keywords like `from` or `to` read like a separate argument, and don't look grouped with anything. 

Using `+` and `-` to indicate relative modifications would indeed be the most readable, but unfortunately, it's not an option for disambiguation reasons. The parser sees `+10%` and `10%` as equivalent.

I love the idea of using `calc()` for tweaking! It would even work with the generic `_` we were discussing above. It would be the first case of using keywords in `calc()`, which may make it trickier to implement, but hopefully the flexibility is worth it?

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

Received on Sunday, 14 October 2018 15:05:42 UTC