{"action":"opened","issue":{"url":"https://api.github.com/repos/MoOx/reduce-css-calc/issues/2","labels_url":"https://api.github.com/repos/MoOx/reduce-css-calc/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/MoOx/reduce-css-calc/issues/2/comments","events_url":"https://api.github.com/repos/MoOx/reduce-css-calc/issues/2/events","html_url":"https://github.com/MoOx/reduce-css-calc/issues/2","id":62934549,"number":2,"title":"Discard calc operations that operate on zero values","user":{"login":"ben-eb","id":1282980,"avatar_url":"https://avatars.githubusercontent.com/u/1282980?v=3","gravatar_id":"","url":"https://api.github.com/users/ben-eb","html_url":"https://github.com/ben-eb","followers_url":"https://api.github.com/users/ben-eb/followers","following_url":"https://api.github.com/users/ben-eb/following{/other_user}","gists_url":"https://api.github.com/users/ben-eb/gists{/gist_id}","starred_url":"https://api.github.com/users/ben-eb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ben-eb/subscriptions","organizations_url":"https://api.github.com/users/ben-eb/orgs","repos_url":"https://api.github.com/users/ben-eb/repos","events_url":"https://api.github.com/users/ben-eb/events{/privacy}","received_events_url":"https://api.github.com/users/ben-eb/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-03-19T09:54:37Z","updated_at":"2015-03-19T09:54:37Z","closed_at":null,"body":"Would it be possible to discard parts of the `calc()` function that operate on zero values? For example:\r\n\r\n```css\r\ndiv {\r\n    width: calc(100vw / 2 - 6px + 0px);\r\n}\r\n```\r\n\r\nCan be:\r\n\r\n```css\r\ndiv {\r\n    width: calc(100vw / 2 - 6px);\r\n}\r\n```\r\n\r\nAnd:\r\n\r\n```css\r\ndiv {\r\n    width: calc(500px - 0px);\r\n}\r\n```\r\n\r\nCan be:\r\n\r\n```css\r\ndiv {\r\n    width: 500px;\r\n}\r\n```\r\n\r\nIt's from this edge case in CSSO:\r\n\r\nhttps://github.com/css/csso/issues/222"}}