{"action":"created","issue":{"url":"https://api.github.com/repos/sass/sass/issues/1912","labels_url":"https://api.github.com/repos/sass/sass/issues/1912/labels{/name}","comments_url":"https://api.github.com/repos/sass/sass/issues/1912/comments","events_url":"https://api.github.com/repos/sass/sass/issues/1912/events","html_url":"https://github.com/sass/sass/issues/1912","id":118652781,"number":1912,"title":"Issue with mixing 'auto' and negative values in CSS property declarations","user":{"login":"akaScooter","id":41259,"avatar_url":"https://avatars.githubusercontent.com/u/41259?v=3","gravatar_id":"","url":"https://api.github.com/users/akaScooter","html_url":"https://github.com/akaScooter","followers_url":"https://api.github.com/users/akaScooter/followers","following_url":"https://api.github.com/users/akaScooter/following{/other_user}","gists_url":"https://api.github.com/users/akaScooter/gists{/gist_id}","starred_url":"https://api.github.com/users/akaScooter/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/akaScooter/subscriptions","organizations_url":"https://api.github.com/users/akaScooter/orgs","repos_url":"https://api.github.com/users/akaScooter/repos","events_url":"https://api.github.com/users/akaScooter/events{/privacy}","received_events_url":"https://api.github.com/users/akaScooter/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":3,"created_at":"2015-11-24T16:46:04Z","updated_at":"2015-11-24T18:23:34Z","closed_at":null,"body":"The following code:\r\n```\r\n$value : 12px;\r\n\r\n.my-class {\r\n    margin: 0 auto -$value;\r\n}\r\n```\r\nresults in the following CSS output:\r\n```\r\n.my-class {\r\n    margin: 0 auto-12px; }\r\n```\r\nwith no space between the `auto` and the `-12px` values. My browser (Firefox v42.0) doesn't recognize `auto-12px` as a valid value and ignores the rule.\r\n\r\nIs this an issue where Sass's rules for compressing the output aren't taking the combination of `auto` (or any keyword string value) with a numeric value into account?\r\n\r\n(The following is an example of the work-around I am using in these instances, but there should really be a space left between those values)\r\n```\r\n$value : 12px;\r\n\r\n.my-class {\r\n    margin: 0 auto;\r\n    margin-bottom: -$value;\r\n}\r\n```\r\n\r\n[Sass 3.4.19 (Selective Steve)]"},"comment":{"url":"https://api.github.com/repos/sass/sass/issues/comments/159362278","html_url":"https://github.com/sass/sass/issues/1912#issuecomment-159362278","issue_url":"https://api.github.com/repos/sass/sass/issues/1912","id":159362278,"user":{"login":"davidkpiano","id":1093738,"avatar_url":"https://avatars.githubusercontent.com/u/1093738?v=3","gravatar_id":"","url":"https://api.github.com/users/davidkpiano","html_url":"https://github.com/davidkpiano","followers_url":"https://api.github.com/users/davidkpiano/followers","following_url":"https://api.github.com/users/davidkpiano/following{/other_user}","gists_url":"https://api.github.com/users/davidkpiano/gists{/gist_id}","starred_url":"https://api.github.com/users/davidkpiano/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidkpiano/subscriptions","organizations_url":"https://api.github.com/users/davidkpiano/orgs","repos_url":"https://api.github.com/users/davidkpiano/repos","events_url":"https://api.github.com/users/davidkpiano/events{/privacy}","received_events_url":"https://api.github.com/users/davidkpiano/received_events","type":"User","site_admin":false},"created_at":"2015-11-24T18:23:33Z","updated_at":"2015-11-24T18:23:33Z","body":"@cimmanon Yes, but that's counter-intuitive - you shouldn't need to add parentheses.\r\n\r\nThese should all produce the same result:\r\n```scss\r\n$value : 12px;\r\n$neg-value: -$value;\r\n\r\n.my-class {\r\n  margin: 0 auto -$value;\r\n  margin: 0 auto (-$value);\r\n  margin: 0 auto $neg-value;\r\n  margin: 0 auto -12px;\r\n}\r\n```"}}