{"action":"opened","issue":{"url":"https://api.github.com/repos/postcss/postcss-custom-selectors/issues/15","labels_url":"https://api.github.com/repos/postcss/postcss-custom-selectors/issues/15/labels{/name}","comments_url":"https://api.github.com/repos/postcss/postcss-custom-selectors/issues/15/comments","events_url":"https://api.github.com/repos/postcss/postcss-custom-selectors/issues/15/events","html_url":"https://github.com/postcss/postcss-custom-selectors/issues/15","id":83859718,"number":15,"title":"Wrong output when mixing selectors ","user":{"login":"MoOx","id":157534,"avatar_url":"https://avatars.githubusercontent.com/u/157534?v=3","gravatar_id":"","url":"https://api.github.com/users/MoOx","html_url":"https://github.com/MoOx","followers_url":"https://api.github.com/users/MoOx/followers","following_url":"https://api.github.com/users/MoOx/following{/other_user}","gists_url":"https://api.github.com/users/MoOx/gists{/gist_id}","starred_url":"https://api.github.com/users/MoOx/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MoOx/subscriptions","organizations_url":"https://api.github.com/users/MoOx/orgs","repos_url":"https://api.github.com/users/MoOx/repos","events_url":"https://api.github.com/users/MoOx/events{/privacy}","received_events_url":"https://api.github.com/users/MoOx/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/postcss/postcss-custom-selectors/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-06-02T05:57:28Z","updated_at":"2015-06-02T05:57:28Z","closed_at":null,"body":"```css\r\n@custom-selector :--button button, .button;\r\n:--button a, b {}\r\n```\r\n\r\ngives\r\n\r\n```css\r\nbutton a,\r\n.button a, b {}\r\n```\r\n\r\nWhich doesn't seems correct.\r\n\r\nThis lead to a bug into cssnext where\r\n\r\n```css\r\n@custom-selector :--button button, .button;\r\n\r\n:--button:matches(:focus) {}\r\n\r\n:--button:matches(.is-focused, .is-broken) {}\r\n```\r\n\r\ngives\r\n\r\n```css\r\nbutton:focus,\r\n.button:focus {}\r\n\r\nbutton:matches(.is-focused,\r\n.button.is-focused, button:matches(.is-focused,\r\n.button.is-broken {}\r\n```\r\n\r\nIt's probably because this plugin currently use `.selector` instead of `.selectors` when playing with selectors :)\r\n\r\nBug reported by @jaredadobe"}}