{"action":"created","issue":{"url":"https://api.github.com/repos/ben-eb/cssnano/issues/229","repository_url":"https://api.github.com/repos/ben-eb/cssnano","labels_url":"https://api.github.com/repos/ben-eb/cssnano/issues/229/labels{/name}","comments_url":"https://api.github.com/repos/ben-eb/cssnano/issues/229/comments","events_url":"https://api.github.com/repos/ben-eb/cssnano/issues/229/events","html_url":"https://github.com/ben-eb/cssnano/issues/229","id":165171932,"number":229,"title":"Better handling of 0% to 0 conversion.","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":[{"url":"https://api.github.com/repos/ben-eb/cssnano/labels/enhancement","name":"enhancement","color":"84b6eb"},{"url":"https://api.github.com/repos/ben-eb/cssnano/labels/help%20wanted","name":"help wanted","color":"159818"},{"url":"https://api.github.com/repos/ben-eb/cssnano/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2016-07-12T20:24:19Z","updated_at":"2016-07-13T11:30:52Z","closed_at":null,"body":"So I'd like to continue on a conversation that I had last week from Twitter;\r\n\r\nhttps://twitter.com/briankardell/status/750420488837619712\r\n\r\nIn essence we discussed that the `0%` to `0` conversion is *not* an optimisation which we can apply to any arbitrary property/value pair. In general, the policy is that when `<percentage>` can be turned into `<length>`, then `0% == 0`. It's just not always possible to apply this policy, so semantically the values can be different, *depending on the property*.\r\n\r\nUp until this point I have followed clean-css' behaviour for `0%`—there's a [nice issue pointing out the differences](https://github.com/jakubpawlowicz/clean-css/issues/635)—but it's clear that we should handle this better in future. I'm willing to change the behaviour from a [blacklist of properties](https://github.com/ben-eb/postcss-convert-values/blob/d94d7d39d076f5dfa531f8c8161fe92008f11370/src/index.js#L34-L42) to a whitelist, but I need input from the community as to what properties I should be adding to this list.\r\n\r\nThis is the kind of thing that could benefit from browser testing, so please, if you have had problems in the past with this kind of conversion and would like to see the behaviour changed, your feedback would be really appreciated."},"comment":{"url":"https://api.github.com/repos/ben-eb/cssnano/issues/comments/232329029","html_url":"https://github.com/ben-eb/cssnano/issues/229#issuecomment-232329029","issue_url":"https://api.github.com/repos/ben-eb/cssnano/issues/229","id":232329029,"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},"created_at":"2016-07-13T11:30:52Z","updated_at":"2016-07-13T11:30:52Z","body":"I don't mind. 😄 "}}
{"actor":{"display_login":"ben-eb"}}