{"action":"closed","issue":{"url":"https://api.github.com/repos/postcss/postcss-calc/issues/28","repository_url":"https://api.github.com/repos/postcss/postcss-calc","labels_url":"https://api.github.com/repos/postcss/postcss-calc/issues/28/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-calc/issues/28/comments","events_url":"https://api.github.com/repos/postcss/postcss-calc/issues/28/events","html_url":"https://github.com/postcss/postcss-calc/issues/28","id":159386134,"number":28,"title":"Missing unit after 0","user":{"login":"dennisfrank","id":65968,"avatar_url":"https://avatars.githubusercontent.com/u/65968?v=3","gravatar_id":"","url":"https://api.github.com/users/dennisfrank","html_url":"https://github.com/dennisfrank","followers_url":"https://api.github.com/users/dennisfrank/followers","following_url":"https://api.github.com/users/dennisfrank/following{/other_user}","gists_url":"https://api.github.com/users/dennisfrank/gists{/gist_id}","starred_url":"https://api.github.com/users/dennisfrank/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dennisfrank/subscriptions","organizations_url":"https://api.github.com/users/dennisfrank/orgs","repos_url":"https://api.github.com/users/dennisfrank/repos","events_url":"https://api.github.com/users/dennisfrank/events{/privacy}","received_events_url":"https://api.github.com/users/dennisfrank/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2016-06-09T11:31:11Z","updated_at":"2016-06-09T14:11:21Z","closed_at":"2016-06-09T14:11:21Z","body":"I use postcss-calc in [cssnano](http://cssnano.co/) and `calc(50% - 50vw + (100vw - 100vw) / 2 + 1em)` gets _optimized_ to `calc(50% - 50vw + 0 / 2 + 1em)`. Unfortunately, the unit after `0` is missing and the browser does not calculate the `calc()`statement.\r\n\r\n`calc(50% - 50vw + 0vw / 2 + 1em)` would be the correct optimization. \r\n\r\nOr even better: `calc(50% - 50vw + 1em)`\r\n\r\n`0` vs `0`+ unit.\r\n\r\n(If you wonder why I calculate `100vw - 100vw`: it’s been generated by a [Sass mixin](http://codepen.io/df/pen/XKJOoB?editors=1100) and in most cases it makes more sense.)"}}
{"actor":{"display_login":"MoOx"}}