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

> that suggests one should be using functions to contain the grammars instead

Yeah, I kind of acknowledged that in my next sentence.  It was just getting difficult to mentally parse some of the examples people were presenting earlier in the thread.  I was sort of cheating by using brackets without a function name, but I agree with 

>  functions give names to the functionality, which makes them easier to recognize and search for.

That said, I'm concerned about reusing `calc()` if we're also going to add a context-specific token. So my vote would be for `rel()` or `adjust()` or something like that.  But I still like the idea of having a token for the current variable, to clearly distinguish `rel(s + 20%)` from `rel(s*20%)`.

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

Received on Monday, 15 October 2018 19:30:10 UTC