{"action":"created","issue":{"url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/20","repository_url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset","labels_url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/20/labels{/name}","comments_url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/20/comments","events_url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/20/events","html_url":"https://github.com/maximkoretskiy/postcss-autoreset/issues/20","id":185990661,"number":20,"title":"duplicate declarations","user":{"login":"moimikey","id":182661,"avatar_url":"https://avatars.githubusercontent.com/u/182661?v=3","gravatar_id":"","url":"https://api.github.com/users/moimikey","html_url":"https://github.com/moimikey","followers_url":"https://api.github.com/users/moimikey/followers","following_url":"https://api.github.com/users/moimikey/following{/other_user}","gists_url":"https://api.github.com/users/moimikey/gists{/gist_id}","starred_url":"https://api.github.com/users/moimikey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moimikey/subscriptions","organizations_url":"https://api.github.com/users/moimikey/orgs","repos_url":"https://api.github.com/users/moimikey/repos","events_url":"https://api.github.com/users/moimikey/events{/privacy}","received_events_url":"https://api.github.com/users/moimikey/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-10-28T18:31:46Z","updated_at":"2016-10-28T18:51:25Z","closed_at":"2016-10-28T18:51:25Z","body":"I didn't see any open/closed issue for this, but I have the following input:\r\n\r\n```\r\nhtml, body {\r\n  height: 100%;\r\n}\r\n\r\nbody {\r\n  position: relative;\r\n}\r\n```\r\n\r\nand of course, my postcss config:\r\n\r\n```\r\nconst sharedPlugins = webpack => ([\r\n  require('postcss-import')({\r\n    addDependencyTo: webpack,\r\n    path: ['node_modules', 'src/app'],\r\n    plugins: [\r\n      require('postcss-discard-duplicates')()\r\n    ]\r\n  }),\r\n  require('postcss-url')(),\r\n  require('postcss-cssnext')(),\r\n  require('postcss-discard-duplicates')(),\r\n  require('postcss-font-magician')(),\r\n  require('postcss-autoreset')(),\r\n  require('lost')(),\r\n])\r\n```\r\n\r\nbut get this as output:\r\n\r\n```\r\nhtml, body,\r\nbody {\r\n  all: initial;\r\n}\r\n\r\nhtml, body {\r\n  height: 100%;\r\n}\r\n\r\nbody {\r\n  position: relative;\r\n}\r\n```\r\n\r\nregardless of whether or not i'm misusing `postcss-discard-duplicates`, it doesn't have any effect on this scenario.\r\n\r\nis there a way to avoid the duplication of `body` without having to be careful?"},"comment":{"url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/comments/256999475","html_url":"https://github.com/maximkoretskiy/postcss-autoreset/issues/20#issuecomment-256999475","issue_url":"https://api.github.com/repos/maximkoretskiy/postcss-autoreset/issues/20","id":256999475,"user":{"login":"moimikey","id":182661,"avatar_url":"https://avatars.githubusercontent.com/u/182661?v=3","gravatar_id":"","url":"https://api.github.com/users/moimikey","html_url":"https://github.com/moimikey","followers_url":"https://api.github.com/users/moimikey/followers","following_url":"https://api.github.com/users/moimikey/following{/other_user}","gists_url":"https://api.github.com/users/moimikey/gists{/gist_id}","starred_url":"https://api.github.com/users/moimikey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/moimikey/subscriptions","organizations_url":"https://api.github.com/users/moimikey/orgs","repos_url":"https://api.github.com/users/moimikey/repos","events_url":"https://api.github.com/users/moimikey/events{/privacy}","received_events_url":"https://api.github.com/users/moimikey/received_events","type":"User","site_admin":false},"created_at":"2016-10-28T18:51:25Z","updated_at":"2016-10-28T18:51:25Z","body":"thanks @maximkoretskiy. ill reopen if i experience any issues."}}
{"actor":{"display_login":"moimikey"}}