Re: [css-houdini-drafts] [css-typed-om] Will need to handle min()/max()

Not particularly? I don't see why one or the other is better in terms of DevExp.  Unless I go all-out and make them both take exactly two arguments, it seems like you have to handle pretty much the same sort of thing.

Starting to spec this, tho, and I'm feeling the lack of a negation operator.  It's actually kinda weird to distribute the negation inward to the leaves; it makes `.sub()` dramatically different in effect from everything else.  I think I'd prefer to add a "0-" operator too.

Maybe drop the numeric suffixes and just use "/" and "-" for consistency, if it seems clear enough. Just want to make it clear that `("-", 2, 3)` == `calc(-(2 + 3))` rather than `calc(2 - 3)`.  It's clearer when there's 1 arg or 3+ args, but the 2-arg case feels ambiguous with "-" and "/", but clear with "0-" and "1/".

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

Received on Thursday, 27 April 2017 23:09:02 UTC