{"action":"created","issue":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/544","repository_url":"https://api.github.com/repos/w3c/csswg-drafts","labels_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/544/labels{/name}","comments_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/544/comments","events_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/544/events","html_url":"https://github.com/w3c/csswg-drafts/issues/544","id":179817848,"number":544,"title":"[css-values] Re-adding min() and max()?","user":{"login":"LeaVerou","id":175836,"avatar_url":"https://avatars.githubusercontent.com/u/175836?v=3","gravatar_id":"","url":"https://api.github.com/users/LeaVerou","html_url":"https://github.com/LeaVerou","followers_url":"https://api.github.com/users/LeaVerou/followers","following_url":"https://api.github.com/users/LeaVerou/following{/other_user}","gists_url":"https://api.github.com/users/LeaVerou/gists{/gist_id}","starred_url":"https://api.github.com/users/LeaVerou/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/LeaVerou/subscriptions","organizations_url":"https://api.github.com/users/LeaVerou/orgs","repos_url":"https://api.github.com/users/LeaVerou/repos","events_url":"https://api.github.com/users/LeaVerou/events{/privacy}","received_events_url":"https://api.github.com/users/LeaVerou/received_events","type":"User","site_admin":false},"labels":[{"id":410302234,"url":"https://api.github.com/repos/w3c/csswg-drafts/labels/css-values-4","name":"css-values-4","color":"c5def5","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-28T16:12:10Z","updated_at":"2016-12-22T08:42:03Z","closed_at":null,"body":"Perhaps now that Values 3 has gone to CR it's time to reconsider adding `min()` and `max()` back into Values 4?\n\nAuthors are doing extremely [weird](http://blog.typekit.com/2016/08/17/flexible-typography-with-css-locks) [hacks](http://fvsch.com/code/css-locks/) with `calc()` to emulate them in `font-size` and `line-height`, which they call \"CSS locks\". If you google _CSS locks_ you will see how widespread these hacks are becoming, indicating a clear author need.\n\nFurthermore, as CSS variables become more widely used, the need for `min()` and `max()` will become even greater. I recall some of the issues that [made us drop them 6 years ago](https://lists.w3.org/Archives/Public/www-style/2010Sep/0233.html) can now be solved with the _invalid at computed value time_ concept that Variables introduced.\n"},"comment":{"url":"https://api.github.com/repos/w3c/csswg-drafts/issues/comments/268748355","html_url":"https://github.com/w3c/csswg-drafts/issues/544#issuecomment-268748355","issue_url":"https://api.github.com/repos/w3c/csswg-drafts/issues/544","id":268748355,"user":{"login":"Crissov","id":6200185,"avatar_url":"https://avatars.githubusercontent.com/u/6200185?v=3","gravatar_id":"","url":"https://api.github.com/users/Crissov","html_url":"https://github.com/Crissov","followers_url":"https://api.github.com/users/Crissov/followers","following_url":"https://api.github.com/users/Crissov/following{/other_user}","gists_url":"https://api.github.com/users/Crissov/gists{/gist_id}","starred_url":"https://api.github.com/users/Crissov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Crissov/subscriptions","organizations_url":"https://api.github.com/users/Crissov/orgs","repos_url":"https://api.github.com/users/Crissov/repos","events_url":"https://api.github.com/users/Crissov/events{/privacy}","received_events_url":"https://api.github.com/users/Crissov/received_events","type":"User","site_admin":false},"created_at":"2016-12-22T08:42:03Z","updated_at":"2016-12-22T08:42:03Z","body":"The reason for avoidance of `<` (in the past) was compatibility, not really syntax, as far as I remember. I don’t fancy `%` as a binary operator either, but it has precedent elsewhere.\r\n\r\nThe advantages of `>` over `max()` are really the same as for `+` vs. `sum()`, except that _plus_ is much better established externally. Semantically, `>` continues with the larg*er* of the adjacent terms, whereas `max()`selects the large*est* out of a list. I prefer the latter in programming languages and spreadsheet applications, but, unlike those, CSS has only scalars to deal with – no vectors, ranges, arrays or objects (except perhaps for `<<color>>` eventually). We don’t need more JS notation in CSS."}}
{"actor":{"display_login":"Crissov"}}